Learn R Programming

umx (version 1.9.1)

umx_parameters: Display path estimates from a model, filtering by name and value.

Description

Often you want to see the estimates from a model, and often you don't want all of them. umx_parameters helps in this case, allowing you to select parameters matching a name filter, and also to only show parameters above or below a certain value.

Usage

umx_parameters(x, thresh = c("all", "above", "below", "NS", "sig"),
  b = NULL, pattern = ".*", std = FALSE, digits = 2)

umxParameters(x, thresh = c("all", "above", "below", "NS", "sig"), b = NULL, pattern = ".*", std = FALSE, digits = 2)

parameters(x, thresh = c("all", "above", "below", "NS", "sig"), b = NULL, pattern = ".*", std = FALSE, digits = 2)

Arguments

x

an mxModel or model summary from which to report parameter estimates.

thresh

optional: Filter out estimates 'below' or 'above' a certain value (default = "all").

b

Combine with thresh to set a minimum or maximum for which estimates to show.

pattern

Optional string to match in the parameter names. Default '.*' matches all. regex allowed!

std

Standardize output: NOT IMPLEMENTED YET

digits

Round to how many digits (2 = default).

Value

- list of matching parameters, filtered by name and value

Details

It is on my TODO list to implement filtering by significance, and to add standardizing.

References

- https://github.com/tbates/umx, https://tbates.github.io

See Also

- parameters, umxSummary, umx_names

Other Reporting Functions: loadings.MxModel, tmx_is.identified, umxAPA, umxFactorScores, umxGetParameters, umxReduce, umxSummary, umx_APA_pval, umx_aggregate, umx_print, umx_show, umx_time, umx

Examples

Run this code
# NOT RUN {
require(umx)
data(demoOneFactor)
manifests = names(demoOneFactor)
m1 <- umxRAM("One Factor", data = mxData(demoOneFactor, type = "raw"),
	umxPath(from = "G", to = manifests),
	umxPath(v.m. = manifests),
	umxPath(v1m0 = "G")
)
# Parameters with values below .1
umx_parameters(m1, "below", .1)
# Parameters with values above .5
umx_parameters(m1, "above", .5)
# Parameters with values below .1 and containing "_to_" in their label
umx_parameters(m1, "below", .1, "_to_")
# }

Run the code above in your browser using DataLab