A guess, as I don't know STATA:
?lme (library(nlme) first)
(also perhaps anova with an "Error" term -- ?anova)
But:
R is not STATA
R is not SAS
R is not SPSS
...
R is R
So do not expect the same paradigms to hold; but because R IS R, one can
always program ways to make them hold.
Bert Gunter
Genentech Nonclinical Biostatistics
-----Original Message-----
From: r-help-bounces at r-project.org [mailto:r-help-bounces at r-project.org]
On
Behalf Of Sunita22
Sent: Tuesday, September 01, 2009 8:03 AM
To: r-help at r-project.org
Subject: [R] Re gression - cluster option in STATA
Hello
In STATA there is command which has regression with clustering option. Can
anyone tell me what is the command for the same in R
for example in STATA
its regress Height Weight, cluster(id)
Thanks in Advance
Regards
Sunita
--
View this message in context:
http://www.nabble.com/Regression---cluster-option-in-STATA-tp25241948p252419
48.html
Sent from the R help mailing list archive at Nabble.com.
______________________________________________
R-help at r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.