Dear All,
I am looking for a function in S-PLUS that works like "collapse" in STATA.
Specifically, I am trying to create some level-2 and level-3 datasets for use
in HLM from a single dataset that I analyzed as a 3-level model in S-PLUS. I
tried collapse.groupedData, but I'm not getting exactly what I want.
In STATA, the function might look like:
collapse (mean) meanses size sector pracad disclim himinty, by(id)
Thanks,
Kyle
***************************************
J. Kyle Roberts, Ph.D.
Baylor College of Medicine
Center for Educational Outreach
One Baylor Plaza, MS: BCM411
Houston, TX 77030-3411
713-798-6672 - 713-798-8201 Fax
jkrobert@bcm.edu
***************************************
|