I have several contributing factors in a GLMM; I am using the nlme::lmenlme::lme
function. The current form is:
However, when I compare this to the original model formulation, I suspect that the dummy variables are not properly addressed in the lme()lme()
. I coded "MvsF" as -0.66667 for males and 0.3333 for all females, and yet the estimate, s.e. and probaliity is the same as using the original "gender" variate.
I suspect that I need to call the MvsF using some kind of signal to lme()lme()
to let it know the values of MvsF are important, similarly to the way I might use factor(variate) or I(variate) inline to denote the way lme()lme()
should handle each variate. factor(MvsF clearly has no effect (basically what I have shown above), lme()lme()
does not treat the variables MvsF and Gender any differently.
If what my @JakeWestfall suggests has been used correctly, then the only thing new that I have added to the model is the YvsNYYvsNY
where 'Males' are coded differently to 'Females with No Young', where in the original variate they were coded the same, 0. This has changed the model for sure, and looks more like its on the right path, but why did I code MvsFMvsF
to THOSE values, if it changes nothing? I could easily have ONLY changed YoungPresentYoungPresent
(0/1) to YvsNY (0, -.5, .5)....
One of the problems as I see it, is that males are still included in the YvsN variate - the parameter YvsN estimates a line that goes through three points on the x axis: the three levels of that variate - (-.5,0,.5 = Young, Male, No Young), and therefore Males are still contributing to the estimate of this variate - when I think they should not. I believe what I may need is similar to a grouping structure (in the random term?) where YvsNYvsN
is nested within Gender (or MvsFMvsF
, I think it doesn't matter) such that Males do not contribute to estimation of the YvsNYvsN
parameter.
The effect seems small, but it still seems possible to push around the YvsNYYvsNY
estimate, by changing males response values. This is what worries me.