tdcm.plot {TDCM}R Documentation

Plotting TDCM Results

Description

tdcm.plot() visualizes the results from TDCM analyses.

Usage

tdcm.plot(results, attribute.names = c(), group.names = c())

Arguments

results

results from tdcm.summary or mg.tdcm.summary

attribute.names

an optional vector of attribute names to include in plots.

group.names

an optional vector of group names to include in plots.

Value

No return value, called for side effects.

Examples


## Example 1: T = 2, A = 4
data(data.tdcm01, package = "TDCM")
dat1 = data.tdcm01$data
qmat1 = data.tdcm01$q.matrix

#estimate TDCM with invariance assumed and full LCDM
m1 = TDCM::tdcm(dat1, qmat1, num.time.points = 2, invariance = TRUE, rule = "GDINA")

#summarize results with tdcm.summary function
results1 = TDCM::tdcm.summary(m1, num.time.points = 2)

#plot results
TDCM::tdcm.plot(results1, attribute.names = c("Addition", "Subtraction",
"Multiplication", "Division"))



[Package TDCM version 0.1.0 Index]