Contrary to some here, others (e.g. Brian Ripley, the authors of sensR, and the authors of psyphy) appear to think that using a standard binomial link function when analyzing two alternative forced choice data in which the minimum expected proportion correct is .5 is incorrect. However, their approach as to what the link function should be varies.
1.The sensR library uses:
function (mu)
{
tres <- mu
for (i in 1:length(mu)) {
if (mu[i] > 0.5)
tres[i] <- sqrt(2) * qnorm(mu[i])
if (mu[i] <= 0.5)
tres[i] <- 0
}
tres
}
2.The psyphy library uses:
function (mu)
{
m <- 2
mu <- pmax(mu, 1/m + .Machine$double.eps)
qlogis((m * mu - 1)/(m - 1))
}
3.Gabriel Baud-Bovy implicitly recommends (1+exp(x)/(1+exp(x)))/2.
The approach selected seems like it may have some consequences for the result. Is there a "correct" link function to be using with these sorts of problems, or so long as the link, inverse link, mu.eta, and variance functions all agree is everything going to be all right? Is there a single source material that provides any authoritative guidance on this issue?
Following John's advice I plotted these functions...
alt text http://psychlab2.variablesolutions.org/~russell/ForInternet/2AFCFunctionPlots.jpg
The black line is a standard logistic function. The red line is the function from sensR. The blue line is from psyphy and the cyan line is from Gabriel Baud-Bovy, but given the oddness of the shape it provides, perhaps I misinterpreted him. The psyphy function line looks like what I'd expect a logistic function to look like in a psychophysics 2AFC experiment.