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

umx_set_data_variance_check

umx_set_data_variance_check


Description

Set default for data checking in models like umxACE umxGxE etc.

Usage

umx_set_data_variance_check(minVar = NULL, maxVarRatio = NULL, silent = FALSE)

Arguments

minVar

Set the threshold at which to warn user about variables with too-small variance. Else returns the current value of umx_minVar

maxVarRatio

Set the option for threshold at which to warn user variances differ too much. Else returns the current value of umx_maxVarRatio

silent

If TRUE, no message will be printed.

Value

- list of umx_minVar and umx_maxVarRatio settings

See Also

xmu_check_variance which uses these to check sanity in the variances of a data frame.

Examples

library(umx)
umx_set_data_variance_check() # print current state
old = umx_set_data_variance_check(silent = TRUE) # store existing value
umx_set_data_variance_check(minVar = .01)
umx_set_data_variance_check(maxVarRatio = 500)
umx_set_data_variance_check(minVar = old$minVar, maxVarRatio = old$maxVarRatio) # reinstate

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.