View source: R/growth-mixture-simulate.R
| predict.latents_growth_mixture | R Documentation |
Predictions for new persons are not implemented yet. The fitted class
trajectories and each fitted person's own predicted curve are tables of
get_results.latents_growth_mixture(): "trajectories" and
"individual".
## S3 method for class 'latents_growth_mixture'
predict(object, ...)
object |
A |
... |
Unused. |
Never returns; raises latents_unsupported_prediction.
few_students <- subset(growth_scores, student <= 60)
fit <- mixture_regression(score ~ wave, few_students, n_classes = 2,
id = "student", class_level = "group",
random = "intercept", seed = 1)
# Prediction is refused; get_results(fit, "trajectories") has the curves
try(predict(fit))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.