[.longarm | R Documentation |
Auxiliary function to extract parts of longarm
object.
## S3 method for class 'longarm'
x[...]
x |
An object of class |
... |
Additional arguments (passed on to [.data.frame). |
Guido Schwarzer guido.schwarzer@uniklinik-freiburg.de
longarm
, subset.longarm
,
dat.franchini2012
# Transform data from wide arm-based format to contrast-based format
pw1 <- pairwise(list(Treatment1, Treatment2, Treatment3),
n = list(n1, n2, n3),
mean = list(y1, y2, y3), sd = list(sd1, sd2, sd3),
data = dat.franchini2012, studlab = Study)
# Transform data from contrast-based to long arm-based format
# and only keep the main variables
la1 <- longarm(pw1, append = FALSE)
head(la1)
la1[la1$studlab == "Lieberman 1998", ]
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.