Learn R Programming

simsem (version 0.2-8)

SimEqualCon-class: Class "SimEqualCon"

Description

Set of specified equality constraints

Arguments

Objects from the Class

Objects can be created by simEqualCon. Also, it can be called of the form new("SimEqualCon", ...).

Details

The Equality slot contains list of equality constraint. Each element in the list is an individual equality constraint saved in a matrix. Each row represents each element. If the matrix has two columns, the first column indicates row of the element and the second column indicates column of the element. If the matrix has three columns, the first column is the group of matrix. The rest is row and column. Row name represents the matrix that the element is in. The definition of row name can be seen in simSetCFA, simSetPath, or simSetSEM, depending on analysis model you specify.

See Also

  • simEqualConfor the constructor of this class
  • simDatafor a potential use of this object to create data
  • simModelfor a potential use of this object to run an analysis

Examples

Run this code
showClass("SimEqualCon")
constraint1 <- matrix(1, 3, 2)
constraint1[,1] <- 1:3
rownames(constraint1) <- rep("LY", 3)
constraint2 <- matrix(2, 3, 2)
constraint2[,1] <- 4:6
rownames(constraint2) <- rep("LY", 3)
constraint3 <- matrix(3, 2, 2)
constraint3[,1] <- 7:8
rownames(constraint3) <- rep("LY", 2)
equal.loading <- simEqualCon(constraint1, constraint2, constraint3, modelType="SEM")
summary(equal.loading)

Run the code above in your browser using DataLab