Let's say I have repeated measures of some outcome on some subjects. I want to be able to calculate the within and between subject coefficient of variation for this measure.
An example data frame is: df<-data.frame(ID = c(1,1,1,2,2,2,3,3,3), DAY = c(0,3,6, 0,3,6, 0,3,6), VALUE = c(1,2,3,4,5,5,2,3,4) ) Where ID is the identifier of the subject, DAY is the day the measurement was taken, and VALUE is the measurement taken on that day. Can someone suggest an efficient way to do this? I assume I need to start with repeated measures ANOVA or mixed model but I'm having trouble figuring out how to use the outputs from those to get the numbers I want. Thanks! [[alternative HTML version deleted]] ______________________________________________ R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see 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.