Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

umx_is_cov

umx_is_cov


Description

test if a data frame, matrix or mxData is type cov or cor, or is likely to be raw...

Usage

umx_is_cov(data = NULL, boolean = FALSE, verbose = FALSE)

Arguments

data

dataframe to test

boolean

whether to return the type ("cov") or a boolean (default = string)

verbose

How much feedback to give (default = FALSE)

Value

- "raw", "cor", or "cov", (or if boolean, then T | F)

References

- <https://github.com/tbates/umx>

See Also

Examples

df = cov(mtcars)
umx_is_cov(df)
df = cor(mtcars)
umx_is_cov(df)
umx_is_cov(mxData(df[1:3,1:3], type= "cov", numObs = 200))
umx_is_cov(df, boolean = TRUE)
umx_is_cov(mtcars, boolean = TRUE)

umx

Structural Equation Modeling and Twin Modeling in R

v4.10.10
GPL-3
Authors
Timothy C. Bates [aut, cre] (<https://orcid.org/0000-0002-1153-9007>), Gillespie Nathan [wit], Michael Zakharin [wit], Brenton Wiernik [ctb], Joshua N. Pritikin [ctb], Michael C. Neale [ctb], Hermine Maes [ctb]
Initial release
2021-11-30

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.