Skip to content
Prev 5490 / 20628 Next

PIECEWISE MIXED-EFFECT MODELING

the '*' operator has a special meaning inside a formula statement -- 
have a look at function I() if you'd like to use '*' in the standard 
way. Try the following (untested):

CD40 <- lme(cd4 ~ I(rt*(rt<25)) + I(rt*(rt>=25)), data = frame1,
   random = ~ rt | id, na.action = na.omit)


I hope it helps.

Best,
Dimitris
On 3/6/2011 12:33 AM, Federico Bonofiglio wrote: