data(uswages}
grouped.data <- with(uswages, data.frame(
educ = tapply(educ,educ,mean),
meanWage = tapply(wage,educ,mean),
sdWage = tapply(wage,educ,sd),
count = tapply(wage,educ,length)))
http://www.stat.umn.edu/~sandy/courses/8053/Data/BGSgirlsLong.csvhas longitudinal data on 10 girls born in Berkeley California in 1928 or 1929. We will be interested in modeling height (the variable
Ht_cm) as a function of Age. The variable Subject is the subject number.
http://www.stat.umn.edu/~sandy/courses/8053/Data/mybs.RIf you look at the code you should be able to figure out what it does and how to use it.)