powered by
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)
a dataframe of raw data from which to get variances.
value to return for the means of factor data = 0
passed to mean - defaults to "na.rm"
- frame of means
Other Stats Functions: reliability, umxCov2cor, umx_cor, umx
reliability
umxCov2cor
umx_cor
umx
# NOT RUN { 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) # }
Run the code above in your browser using DataLab