View source: R/ctModelFromFit.R
ctModelFromFit | R Documentation |
Extract a ctsem model structure with parameter values from a ctsem fit object.
ctModelFromFit(fit)
fit |
object output by |
object of class 'ctsemInit' (as generated by ctModel
),
which can be used with ctFit
and functions.
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)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.