Description Usage Arguments Value
Random Intercept CLPM
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 | riclpm(
data,
factors = list(list(label = "X", vars = list()), list(label = "Y", vars = list())),
show_schematic_plot = TRUE,
include_random_intercept = FALSE,
constrain_crosslagged = FALSE,
constrain_autoregressions = FALSE,
constrain_residual_variances = FALSE,
constrain_observed_errors = FALSE,
constrain_covariances = FALSE,
constrain_intercepts_over_time = FALSE,
estimate_observed_intercepts = TRUE,
estimate_observed_errors = FALSE,
estimate_latent_intercepts = FALSE,
estimate_intercepts_intercepts = FALSE,
fix_random_intercept_first_wave_covariance_to_zero = FALSE,
show_lavaan_syntax = FALSE,
show_lavaan_output = FALSE,
missing_data_treatment = "listwise"
)
|
data |
the data as a data frame |
factors |
a list containing named lists that define the |
show_schematic_plot |
. |
include_random_intercept |
. |
constrain_crosslagged |
. |
constrain_autoregressions |
. |
constrain_residual_variances |
. |
constrain_observed_errors |
. |
constrain_covariances |
. |
constrain_intercepts_over_time |
. |
estimate_observed_intercepts |
. |
estimate_observed_errors |
. |
estimate_latent_intercepts |
. |
estimate_intercepts_intercepts |
. |
fix_random_intercept_first_wave_covariance_to_zero |
. |
show_lavaan_syntax |
. |
show_lavaan_output |
. |
missing_data_treatment |
. |
A results object containing:
results$factor_definitions | a table | ||||
results$lavaan_warnings | a table | ||||
results$schematic_plot | an image | ||||
results$latent_variables | a table | ||||
results$random_intercept_latent_variables | a table | ||||
results$autolagged_paths | a table | ||||
results$crosslagged_paths | a table | ||||
results$covariances | a table | ||||
results$intercepts | a table | ||||
results$variances | a table | ||||
results$lavaan_output | a preformatted | ||||
results$lavaan_syntax | a preformatted | ||||
Tables can be converted to data frames with asDF
or as.data.frame
. For example:
results$factor_definitions$asDF
as.data.frame(results$factor_definitions)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.