The goal of silp is to …
You can install the development version of silp from GitHub with: devtools::install_github(“TomBJJJ/silp”)
# install.packages("devtools")
::install_github("TomBJJJ/silp") devtools
This is a basic example which shows you how to solve a common problem:
library(silp)
## basic example code
= generate_data(100, 0.3, 0.4, c(1,1,1,1), 0.9)
data = "
model fy =~ y1 + y2 + y3 + y4
fx =~ x1 + x2 + x3 + x4
fz =~ z1 + z2 + z3 + z4
fy ~ fx + fz + fx:fz
"
= silp(model, data)
fit = resilp(fit) refit