ctModelFromFit: Extract a ctsem model structure with parameter values from a...

Description Usage Arguments Value Examples

View source: R/ctModelFromFit.R

Description

Extract a ctsem model structure with parameter values from a ctsem fit object.

Usage

1

Arguments

fit

object output by ctFit

Value

object of class 'ctsemInit' (as generated by ctModel), which can be used with ctFit and functions.

Examples

1
2
3
4
5
6
data(AnomAuth) 
AnomAuthmodel <- ctModel(LAMBDA = matrix(c(1, 0, 0, 1), nrow = 2, ncol = 2), 
  Tpoints = 5, n.latent = 2, n.manifest = 2, MANIFESTVAR=diag(0, 2)) 
AnomAuthfit <- ctFit(AnomAuth, AnomAuthmodel)

fitmodel <- ctModelFromFit(AnomAuthfit)

cdriveraus/ctsemOMX documentation built on Dec. 19, 2021, 2:51 p.m.