Code:
gsem outcome <- timevar timevar_squared c.timevar#RS[idvar] timevar_squared#RS2[idvar] RI[idvar]
Code:
mixed outcome timevar timevar_squared || idvar: timevar timevar_squared , cov(uns)
1) estimating a simpler model first (which converges no problem), and using the parameter estimates as starting values for the full model:
Code:
gsem outcome <- timevar timevar_squared c.timevar#RS[idvar] RI[idvar] matrix b = e(b) gsem outcome <- timevar timevar_squared c.timevar#RS[idvar] timevar_squared#RS2[idvar] RI[idvar], from(b)
3) Using alternative numerical integration methods, 'intmethod(ghermite)' and 'intmethod(laplace)'
4) adding the 'difficult' option
In all of these methods there is an initial improvement in the likelihood, followed by many iterations of 'not concave' with no improvement in the likelihood.
The only way I've been able to get gsem to converge is to:
1) run gsem with the 'noestimate' option to get a matrix with the appropriate structure for the parameters
2) run the same model in mixed
3) modify the matrix from 'gsem... , noestimate' with the final values from mixed
4) re-run gsem with the final values from mixed as starting values
This works, and gives me back the same parameters from mixed, but obviously isn't a general solution, and won't be very useful for cases where I'm extending the model.
Is there something in this sort of model likely to create problems for gsem consistently? And are there other general solutions I should look to in these situations?
0 Response to quadratic growth model in gsem: estimation problems
Post a Comment