View source: R/compare-models.R
| plot.latents_comparison | R Documentation |
Each model's AIC, BIC and sample-size adjusted BIC, lowest best; the model with the smallest BIC is marked.
## S3 method for class 'latents_comparison'
plot(x, main = NULL, subtitle = NULL, ...)
x |
A |
main, subtitle |
Title and subtitle. |
... |
Unused. |
A ggplot object. Raises latents_missing_package without ggplot2.
few_students <- subset(growth_scores, student <= 60)
trajectories <- mixture_regression(score ~ wave, few_students, n_classes = 2,
id = "student", class_level = "group",
seed = 1)
growth <- mixture_regression(score ~ wave, few_students, n_classes = 2,
id = "student", class_level = "group",
random = "intercept", seed = 1)
comparison <- compare_models(trajectories = trajectories, growth = growth)
if (requireNamespace("ggplot2", quietly = TRUE)) plot(comparison)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.