umx_has_CIs
A utility function to return a binary answer to the question "does this mxModel()
have confidence intervals?"
umx_has_CIs(model, check = c("both", "intervals", "output"))
model |
The |
check |
What to check for: "intervals" requested, "output" present, or "both". Defaults to "both" |
TRUE or FALSE
Other Test:
umx_check_OS()
,
umx_check_model()
,
umx_check_names()
,
umx_check_parallel()
,
umx_check()
,
umx_has_been_run()
,
umx_has_means()
,
umx_has_square_brackets()
,
umx_is_MxData()
,
umx_is_MxMatrix()
,
umx_is_MxModel()
,
umx_is_RAM()
,
umx_is_cov()
require(umx) data(demoOneFactor) manifests = names(demoOneFactor) m1 = umxRAM("_has_CI_ex", data = demoOneFactor, type = "cov", umxPath("g", to = manifests), umxPath(var = manifests), umxPath(var = "g", fixedAt = 1.0) ) umx_has_CIs(m1) # FALSE: no CIs and no output m1 = mxModel(m1, mxCI("g_to_x1")) umx_has_CIs(m1, check = "intervals") # TRUE intervals set umx_has_CIs(m1, check = "output") # FALSE not yet run m1 = mxRun(m1) umx_has_CIs(m1, check = "output") # Still FALSE: Set and Run ## Not run: m1 = mxRun(m1, intervals = TRUE) umx_has_CIs(m1, check = "output") # TRUE: Set, and Run with intervals = T umxSummary(m1) ## End(Not run)
Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.