i have the dependent variable observed 4 years, 2011, 2013, 2015, 2018. i would like to observe the change trend during this time period. i first used "graph twoway" and found there is a non-linear growth curve maybe. and then i used "mixed" command to test whether Linear Growth curve model with random slope or curviLinear Growth curve model with random slope is better or not. i begin with unconditional model:
// unconditional model Linear Growth curve model with random slope
mixed depvar i.year|| communityID: || ID2:, covariance(unstructured) nolog
est store linearrandomintercept
// unconditional model curviLinear Growth curve model with random slope
mixed depvar i.year i.year#i.year || communityID:i.year || ID2: i.year, covariance(unstructured) nolog
est store curvilinearrandomintercept
the first model can run successfully, but when i ran the second model, i receive the warning message: "convergence not achieved"
i am new with the growth curve model, could you please tell me whether my code is right and how to fix it to achieve convergence? thanks a lot!!
// unconditional model Linear Growth curve model with random slope
mixed depvar i.year|| communityID: || ID2:, covariance(unstructured) nolog
est store linearrandomintercept
// unconditional model curviLinear Growth curve model with random slope
mixed depvar i.year i.year#i.year || communityID:i.year || ID2: i.year, covariance(unstructured) nolog
est store curvilinearrandomintercept
the first model can run successfully, but when i ran the second model, i receive the warning message: "convergence not achieved"
i am new with the growth curve model, could you please tell me whether my code is right and how to fix it to achieve convergence? thanks a lot!!
Comment