# NOT RUN {
set.seed(323412431)
data("semnova_test_data", package = "semnova")
mmodel <- create_mmodel(
A1B1 = "var1",
A2B1 = "var2",
A3B1 = "var3",
A1B2 = "var4",
A2B2 = "var5",
A3B2 = "var6",
lv_scaling = "referent"
)
hypotheses <- list(
Intercept = c(1),
A = c(2, 3),
B = c(4),
AB = c(5, 6)
)
C_matrix <- matrix(
c(1, 1, 0, 1, 1, 0,
1, 0, 1, 1, 0, 1,
1,-1,-1, 1,-1,-1,
1, 1, 0,-1,-1, 0,
1, 0, 1,-1, 0,-1,
1,-1,-1,-1, 1, 1),
nrow=6
)
fit_lgc <- lgc(data = semnova_test_data, mmodel, C_matrix, hypotheses)
summary(fit_lgc)
# }
Run the code above in your browser using DataLab