ICCforlongformat | R Documentation |
ICC wrapper for wide format data frame
ICCforlongformat(d, vars, subjectvar, visitvar, maxvisits = 2)
d |
long format (row per visit, possibly many rows per subject) |
vars |
which columns to return ICC values for |
subjectvar |
column uniquely identifying subject |
visitvar |
column uniquely identifying visit |
maxvisits |
cutoff for number of visits any one subject contributes |
d <- data.frame(id=rep(1:6, 3), visit=rep(1:3, each=6),
a=runif(18,0,10),
b=runif(18,0,10))
d_ICCs <- ICCforlongformat(d, c('a','b'), "id", "visit")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.