aggregate
function is extremely useful and powerful, allowing
xtabs based on a formula. umx_aggregate just tries to make using it a bit easier.
In particular, it has some handy base functions that simplify the task of summarising data
aggregating over some grouping factor. A common use is preparing summary tables.
umx_aggregate(formula = DV ~ condition, data, what = c("mean_sd", "n"))
umx_apply
, aggregate
Other Reporting Functions: loadings.MxModel
,
mxSE
, umxAPA
,
umx_APA_pval
, umx_print
,
umx_show
, umx_time
,
umx
aggregate(mpg ~ cyl, FUN = mean, na.rm = TRUE, data = mtcars)
umx_aggregate(mpg ~ cyl, data = mtcars)
umx_aggregate(cbind(mpg, qsec) ~ cyl, data = mtcars)
t(umx_aggregate(cbind(mpg, qsec) ~ cyl, data = mtcars))
## Not run:
# umx_aggregate(cbind(moodAvg, mood) ~ condition, data = study1)
# ## End(Not run)
Run the code above in your browser using DataLab