Skip to content
Prev 7011 / 20628 Next

random factor selection

Kirstin-Friederike Heise <kheise at ...> writes:
You do know that there's some question about incorporating
BLUPs in further analyses, right?  (I don't have detailed
knowledge of this, just think that it's controversial
in some circles ...)
mBZ2<- lme(lnX2FTtrans~age+blupREST+blupTIMEST+age*blupTIMEST, 
  data=dta, random= ~1|subject, na.action=na.exclude,method="REML")


  You don't technically need to specifyage+blupTIMEST here because
age*blupTIMEST expands to age+blupTIMEST+age:blupTIMEST.  It 
doesn't do any harm (except potential confusion), though.
There are many criteria for deciding between fixed and random
(see <http://glmm.wikidot.com/faq> for some), but (at least) two
of the criteria strongly suggest that sex should be fixed:
(1) there aren't enough levels to estimate an among-level variance with 
any reasonable power;
(2) it doesn't make sense to imagine 'male' and 'female' as having been
chosen at random from a population of potential sexes that could
have been included in the model
This doesn't make much sense at all, because this is specifying
that the effect of switching from one sex to the other varies
among subjects. Unless you are dealing with sex-switching organisms
(which do exist), the 'sex' factor cannot vary within subject,
hence this variance cannot be estimated.
That's surprising. We would need to see more details in
order to know what's going on.  All I can think of is that it's
somehow interacting with the unbalanced design to give you a
result that's partially accounting for the overall difference
between sexes.

  I would try

mBZ2S <- update(mBZ2S,.~.+sex)