Learn R Programming

ctsem (version 2.8.2)

plot.ctsemFitMeasure: Misspecification plot using ctCheckFit output

Description

Misspecification plot using ctCheckFit output

Usage

# S3 method for ctsemFitMeasure
plot(x, indices = "all",
  corrplotargs = list(method = "square", is.corr = FALSE, addgrid.col =
  NA), labels = TRUE, ...)

Arguments

x

Object output from ctsemFitMeasure function.

indices

Either 'all' or a vector of integers denoting which observations to include (from 1 to maximum time points).

corrplotargs

Extra arguments to pass to corrplot function.

labels

Logical. Plot labels for each row / colummn?

...

not used.

Value

Nothing, just plots.

Examples

Run this code
# NOT RUN {
data(ctExample1)
traitmodel <- ctModel(n.manifest=2, n.latent=2, Tpoints=6, LAMBDA=diag(2), 
  manifestNames=c('LeisureTime', 'Happiness'), 
  latentNames=c('LeisureTime', 'Happiness'), TRAITVAR="auto")
traitfit <- ctFit(datawide=ctExample1, ctmodelobj=traitmodel)

check <- ctCheckFit(traitfit,niter=5)
plot(check)
# }

Run the code above in your browser using DataLab