Moscatelli et al provide the equation behind generalized linear mixed-effect models, and their paper is available online:
http://www.journalofvision.org/content/12/11/26.long
They say:
"We included three random-effects parameters (the random intercept, the random slope and their correlation)" --- See Results section, Example 1
Fine. My question is, where is the third random-effect parameter which estimates the correlation between the intercept and slope? Can anyone write the full equation behind glmer, including the correlation parameter?
See equation 12 in their paper, reproduced here.
$Y_{ij}^{*} = \theta_{0} + u_{i}^{0} + x_{ij}(\theta_{1} + u_{i}^{1}) + d_{ij}\theta_{2} + (x_{ij}d_{ij})\theta_{3}$
"...$x_{ij}$ is the stimulus duration, $d_{ij}$ is the dummy variable for the experimental condition (0 for Downward and 1 for Upward), $x_{ij}d_{ij}$ is the interaction between the stimulus duration and the dummy variable, $\theta_{0}...\theta_{3}$ are the fixed-effects coefficients, $u_{i}^{0}$, $u_{i}^{1}$ are the random-effect coefficients." --- see Example 1, equation 12.
From that I see the random intercept, $u_{i}^{0}$ and random slope, $u_{i}^{1}$ but not the correlation parameter.
Many thanks!
EDIT: The model could be written without the correlation parameter using double bar notation:
$y \sim x*d + (x||Subject)$ would expand to the regression equation
$y_{ij} = \theta_{0} + u_{i}^{0} + x_{ij}(\theta_{1} + u_{i}^{1}) + d_{ij}\theta_{2} + (x_{ij}d_{ij})\theta_{3}$
i.e.,
$\theta_{0}$: fixed effect coefficient (intercept),
$\theta_{1}$: fixed effect for $x$
$\theta_{2}$: fixed effect for $d$
$\theta_{3}$: fixed effect for $xd$ interaction
and random effects for intercept and slope: $u_{i}^{0}$ and $u_{i}^{1}$.
But using single bar notation, $y \sim x*d + (x|Subject)$, there will be a correlation parameter in addition. The trouble is, every time I see the equation written in regression form, I never see the correlation parameter (the paper cited is just an example that I found is freely available, other examples come from textbooks which are not online). The documentation for lme4 uses Matrix notation, and I am continuing to look through it for answers, and it seems the correlation param might be part of the Sigma variance-covariance matrix, but it is not always clear how that translates to the regression style which is more familiar to psychologists (and hence used in the Moscateilli paper).
I hope that is a little clearer about what I mean regarding the correlation param, but if not please ask for more references/info :)