lme vs lme4
Jim-- lme() random statements can be a list; thus, have you tried something like: random = list(trtpair = ~1, n.trials = ~nmatr1 + nmatr3) or, said another way, I'd try that. ;) [Caveat: I haven't been tracking this thread closely and just noticed your question below about specifying the random statement in lme()] cheers, Dave Thanks Ben, this helps a lot. Our issue is #2 as you specify here, speed is not an issue. What we are trying to do is accomplish the second analysis, using lme so we can use the varConstPower function this works for the fixed effects model, results <- lme(lor ~0 + nmatr1 + nmatr3 ,random= ~1|trtpair, data=indat,weights=varConstPower(form=~var,fixed=list(power=1))) but we can't figure out how to specify the model (as we would using lmer) to run a random effects models I need to have two random effects, one for the treatment pair comparison and another for the effect of treatment 1 and treatment 3. Using lmer the code would look like ... results <- lmer(lor ~0 + nmatr1 + nmatr3+ (1|trtpair) + (nmatr1 + nmatr3|n.trials), data=indat,weights=varConstPower(form=~var,fixed=list(power=1))) Could I please get some clues how to specify this using lme? Thanks a bunch J
Dave Atkins, PhD Research Associate Professor Department of Psychiatry and Behavioral Science University of Washington datkins at u.washington.edu Center for the Study of Health and Risk Behaviors (CSHRB) 1100 NE 45th Street, Suite 300 Seattle, WA 98105 206-616-3879 http://depts.washington.edu/cshrb/ (Mon-Wed) Center for Healthcare Improvement, for Addictions, Mental Illness, Medically Vulnerable Populations (CHAMMP) 325 9th Avenue, 2HH-15 Box 359911 Seattle, WA 98104 http://www.chammp.org (Thurs)