SimSem-class: Class '"SimSem"'

Description Objects from the Class Slots Methods Author(s) See Also Examples

Description

The template containing data-generation and data-analysis specification

Objects from the Class

Objects can be created by model.

Slots

pt:

Parameter table used in data analysis

dgen:

Data generation template

modelType:

Type of models (CFA, Path, or SEM) contained in this object

groupLab:

The label of grouping variable

con:

The list of defined parameters, equality constraints, or inequality constraints specified in the model

Methods

summary

Get the summary of model specification

Author(s)

Patrick Miller (University of Notre Dame; pmille13@nd.edu), Sunthud Pornprasertmanit (psunthud@gmail.com)

See Also

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
showClass("SimSem")

loading <- matrix(0, 6, 2)
loading[1:3, 1] <- NA
loading[4:6, 2] <- NA
loadingValues <- matrix(0, 6, 2)
loadingValues[1:3, 1] <- 0.7
loadingValues[4:6, 2] <- 0.7
LY <- bind(loading, loadingValues)
summary(LY)

latent.cor <- matrix(NA, 2, 2)
diag(latent.cor) <- 1
RPS <- binds(latent.cor, 0.5)

# Error Correlation Object
error.cor <- matrix(0, 6, 6)
diag(error.cor) <- 1
RTE <- binds(error.cor)

CFA.Model <- model(LY = LY, RPS = RPS, RTE = RTE, modelType="CFA")
summary(CFA.Model)

simsem documentation built on March 29, 2021, 1:07 a.m.

Related to SimSem-class in simsem...