Skip to content
Prev 10237 / 20628 Next

Psychometric curves with glmm

Donald Edward Frederick <donald at ...> writes:
......
.....
(SampleDuration,
random intercept for
between the Subjects. I
StimulusSets and Days.
A couple of thoughts.

Is Correct a binary variable representing the response on individual
trials, i.e., taking on two values, say 0/1?  or is it either the
proportion of correct responses or the number?  If it is the
proportion then you want to include a weights argument with
the number of trials and if it is the number, then it would
be better that Correct is a 2 column matrix with Correct
and Incorrect columns.

Is this a two-alternative forced-choice situation, i.e., 
would the sigmoids lower asymptote be expected to
be at 0.5 instead of 0?  If so, you might consider using
the mafc.logit link function from the psyphy package
but you would have to use the development version
of lme4 for it to work.

Since rats choose SampleDuration, do you want it to be
a random slope term as well?

Your random term, (StimulusSet:Day|Subject), gives the overall
variability for subject within each combination of StimulusSet and Day.
You might want to consider terms like (1 | Subject/Day) that
give a random intercept for both Subject and Subject:Day. This is
equivalent to having terms (1 | Subject) + (1 | Subject:Day).
You would have to think more deeply as to how to include all of the
terms in your experiment but that might get you started.

Hope that is helpful.

best,

Ken