I want to conduct a score test to check whether the inclusion of a random intercept improves the model. I am running a duration model with frailty at the individual level (this is the random intercept). I currently fit the model as follows:
where x3 is an identifier for individual.
gsem doesn't provide scoretests as a postestimation option (unlike SEM which allows estat scoretests). Does boottest or scoretest work for my situation? Can someone please let me know what syntax I should use for scoretest if I want to check whether the inclusion of the random intercept M1[x3] leads to better model fit? If scoretest doesn't allow this, do I have other options?
Code:
gsem _t x1 x2 M1[x3], latent(M1) family(exponential, fail(failureVar) lt(_to)) nocapslatent)
gsem doesn't provide scoretests as a postestimation option (unlike SEM which allows estat scoretests). Does boottest or scoretest work for my situation? Can someone please let me know what syntax I should use for scoretest if I want to check whether the inclusion of the random intercept M1[x3] leads to better model fit? If scoretest doesn't allow this, do I have other options?
Comment