test_that("mplm", {
data <- Leidig2018$`1a1`
result <- mplm(
data,
dvar = c("academic_engagement", "disruptive_behavior")
)
expect_s3_class(result, "sc_mplm")
expect_equal(
round(sum(coef(result$full.model)), 3),
4.575
)
expect_equal(
round(sum(result$full.model$coef_std), 4),
-0.0102
)
})
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.