discrim {sensR}R Documentation

Sensory discrimination analysis

Description

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.

Usage

discrim(success, total,
        method = c("duotrio", "threeAFC", "twoAFC", "triangle"), ...)  

Arguments

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

Details

The function uses the one of the dedicated binomial families and the base function glm

Value

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

Author(s)

Rune Haubo B Christensen and Per Bruun Brockhoff

References

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.

See Also

triangle, twoAFC, threeAFC, duotrio, discrimPwr, discrimSim, discrimSS, samediff, AnotA, findcr

Examples

## Running the simple discrimination test analyses:
discrim(10, 15, "twoAFC")
discrim(10, 15, "threeAFC")
discrim(10, 15, "duotrio")
discrim(10, 15, "triangle")

[Package sensR version 1.0.0 Index]