Skip to content
Prev 13436 / 20628 Next

factor specific residual variance for random coefficient model with lmer

Ok. I found from R help page that the weights argument could
accomplish different residual varainces for different factor levels
like below.


fm2 <- lmer( dv ~ time.num*drug + (0+ drug + time.num | Patient ),
data=dat.new,
weights = varIdent(form = ~1 | drug))
summary(fm2)


But the following error term returned.


Error in summary(fm2) :
  error in evaluating the argument 'object' in selecting a method for
function 'summary': Error: object 'fm2' not found

Any advice?

Thanks
  Hanna

2015-06-10 21:14 GMT-04:00, li li <hannah.hlx at gmail.com>: