discrimSS {sensR} | R Documentation |
Computes the sample size for any one of four methods: 2-AFC, 3-AFC, duotrio and triangle tests given the underlying sensory difference d, the type 1 test level and the required power.
discrimSS(delta, power, alpha, method = c("duotrio", "threeAFC", "twoAFC", "triangle"))
delta |
the underlying sensory difference (larger than zero) |
power |
the wanted power (between zero and one) |
alpha |
the type 1 level of the test (between zero and one) |
method |
the discrimination protocol. Four allowed values: "twoAFC", "threeAFC", "duotrio", "triangle" |
The function uses one of the dedicated binomial families and the
discrimPwr
function
The sample size
Per Bruun Brockhoff and Rune Haubo B Christensen
Brockhoff, P.B. and Christensen, R.H.B.(2008). Thurstonian models for sensory discrimination tests as generalized linear models. Manuscript for Food Quality and Preference.
triangle
, twoAFC
,
threeAFC
, duotrio
,
discrim
, discrimSim
,
AnotA
, discrimPwr
,
samediff
, findcr
## Finding the necessary sample size: discrimSS(1, 0.9, 0.05, "twoAFC") discrimSS(1, 0.9, 0.05, "threeAFC") discrimSS(1, 0.9, 0.05, "duotrio") discrimSS(1, 0.9, 0.05, "triangle")