[prev in list] [next in list] [prev in thread] [next in thread] 

List:       r-help
Subject:    [R] Calculating between and within subject coefficient of variation
From:       Alicia Ellis <alicia.m.ellis () gmail ! com>
Date:       2017-03-29 19:31:36
Message-ID: CAPUn7BeUSav+98rUanpB2FfrYRV69Bk6LqsKx6K4y9Bb7Wx4pw () mail ! gmail ! com
[Download RAW message or body]

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.
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic