[R] how to fit nested random effects with LME

2008-12-08 Thread pilar schneider
Dear experts I need to fit a model with nested random effects (cow within herd and season), and I’m not sure how to do it with R. Using LME I know how to fit: cow within herd fit4 - lme(milk ~ days + season + season*days , data=xxx, random = ~1 + days| herd/cow) How I can fit: cow

[R] how can I save the estimates of a regression model in a file?

2008-11-05 Thread pilar schneider
Dear all I need some help with R. How can I save the estimates of a regression model in a file? here is what I did: 1) this is my regression model: fit1 - lm(logmilk ~ logdays + days, data=data2) 2) however, I want to get the parameters estimates for each individual (by group): so i did the

[R] thanks for the help: how can I save the estimates of a regression model in a file?

2008-11-05 Thread pilar schneider
Thanks for your help the codes you gave me worked vey well! cheers Maria -- - [EMAIL PROTECTED] [[alternative HTML version deleted]] __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help