The getPoly
function refines the polynomial order of a LGM mplusObject
through an iterative process.
In addition to ensuring the statistical significance of growth factors in each latent class,
the function ensure that the best loglikelihood value of the updated model is replicated.
The function works as follows:
1. Extract model information from the provided LGM mplusObject
.
2. Evaluate the statistical significance of the highest-order growth factor in each class.
3. Remove non-significant growth factors (p-value > 0.05) from the model.
4. Update the LGM mplusObject
to reflect changes in the growth factor structure.
5. Re-run the updated mplusObject
until log-likelihood values are successfully replicated using the runLGM
function.
6. Repeat the process until the highest-order growth factor of all classes are statistically significant or reduce to intercept-only.
The function automates the procedure outlined for model selection in:
Van Der Nest et al,. (2020). "An overview of mixture modelling for latent evolutions in longitudinal data: Modelling approaches, fit statistics and software."
Advances in Life Course Research 43: 100323.