| discrim {sensR} | R Documentation |
Computes the d-prime, its standard error and P-value for the hypothesis of no sensory difference for any of four methods: 2-AFC, 3-AFC, duotrio and triangle tests.
discrim(success, total,
method = c("duotrio", "threeAFC", "twoAFC", "triangle"), ...)
success |
the number of correct answers |
total |
the total number of answers (sample size) |
method |
the discrimination protocol. Four allowed values: "twoAFC", "threeAFC", "duotrio", "triangle" |
... |
additional arguments passed to glm |
The function uses the one of the dedicated binomial families and the
base function glm
An object of class discrim with elements
coef |
named vector of coefficients (d-prime and tau) |
res.glm |
the glm-object from the fitting process |
vcov |
variance-covariance matrix of the coefficients |
se |
named vector with standard error of the coefficients (standard error of d-prime |
data |
a named vector with the data supplied to the function |
p.value |
one-sided p-value from Fisher's exact test
(fisher.test) |
test |
a string with the name of the test (A-Not A) for
the print method |
call |
the matched call |
Rune Haubo B Christensen and Per Bruun Brockhoff
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,
discrimPwr, discrimSim,
discrimSS, samediff,
AnotA, findcr
## Running the simple discrimination test analyses: discrim(10, 15, "twoAFC") discrim(10, 15, "threeAFC") discrim(10, 15, "duotrio") discrim(10, 15, "triangle")