umx (version 4.0.0)

tmx_show: Show matrices of RAM models in a easy-to-learn-from format.

Description

A great way to learn about models is to look at the matrix contents. tmx_show is designed to do this in a way that makes it easy to process for users: The matrix contents are formatted as tables, and can even be displayed as tables in a web browser.

Usage

tmx_show(
  model,
  what = c("values", "free", "labels", "nonzero_or_free"),
  show = c("free", "fixed", "all"),
  matrices = c("S", "A", "M"),
  digits = 2,
  report = c("markdown", "inline", "html", "report"),
  na.print = "",
  zero.print = "."
)

Arguments

model

an mxModel() from which to show parameters.

what

legal options are "values" (default), "free", or "labels").

show

filter on what to show c("all", "free", "fixed").

matrices

to show (default is c("S", "A")). "thresholds" in beta.

digits

precision to report. Default = round to 2 decimal places.

report

How to report the results. "html" = open in browser.

na.print

How to display NAs (default = "")

zero.print

How to display 0 values (default = ".")

Value

None

Details

The user can select which matrices to view, whether to show values, free, and/or labels, and the precision of rounding.

References

See Also

Other Teaching and Testing functions: umxDiagnose(), umxPower()

Examples

Run this code
# NOT RUN {
require(umx)
data(demoOneFactor)
manifests = names(demoOneFactor)
m1 = umxRAM("tmx_sh", data = demoOneFactor, type = "cov",
	umxPath("G", to = manifests),
	umxPath(var = manifests),
	umxPath(var = "G", fixedAt = 1)
)

tmx_show(m1)
tmx_show(m1, digits = 3)
tmx_show(m1, matrices = "S")
tmx_show(m1, what = "free")
tmx_show(m1, what = "labels")
tmx_show(m1, what = "free", matrices = "A")
# tmx_show(m1, what = "free", matrices = "thresholds")

# }

Run the code above in your browser using DataLab