umx_means | R Documentation |
Helper to get means from a df that might contain ordered or string data. Factor means are set to "ordVar"
umx_means(df, ordVar = 0, na.rm = TRUE)
df |
a dataframe of raw data from which to get variances. |
ordVar |
value to return for the means of factor data = 0 |
na.rm |
passed to mean - defaults to "na.rm" |
- frame of means
Other Miscellaneous Stats Functions:
FishersMethod()
,
SE_from_p()
,
geometric_mean()
,
harmonic_mean()
,
oddsratio()
,
reliability()
,
umx
,
umxCov2cor()
,
umxHetCor()
,
umxParan()
,
umxWeightedAIC()
,
umx_apply()
,
umx_cor()
,
umx_r_test()
,
umx_round()
,
umx_scale()
,
umx_var()
tmp = mtcars[,1:4]
tmp$cyl = ordered(mtcars$cyl) # ordered factor
tmp$hp = ordered(mtcars$hp) # binary factor
umx_means(tmp, ordVar = 0, na.rm = TRUE)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.