What is the problem:
I am using the post-estimation 'predict' command to estimate the hazard rates for individuals after running a cure model (cureregr) and I get the following error message:
Maximum number of iterations exceeded.
r(498);
What am I doing:
I am conducting an individual-level fertility analysis, using longitudinal event history data, in which I am modelling parity progression (the relative risk of having another child) using a split-population/cure model (cureregr). _t is the duration of the interbirth interval for all second and higher-order births combined. The model contains several control variables, age, region, ses for example and is stratified across mother's birth cohorts.
What does my syntax look like:
xi: cureregr i.age i.region i.ses if cohort ==1, dist(lognormal) class(m) link(logi) sc(i.age i.region i.ses) nolog
predict, haz gen(my_hazard)
What else:
The error only seems to arise for some mother's birth cohorts and not others.
Related Posts with cureregr: post-estimation problem predicting hazards
Generating a variable that tracks the first time 2 IDs appear simultaneouslyHi, I am new to Stata, so I am not very familiar with the codes. I have a dataset with multiple var…
Destringing a numerical string*variable with existing mixed valuesI have a variable "height" with all the values being numerical but some values are below 50 were cap…
Questions for "drop" participants in long data format for repeated mesurements.Hello! I'd like to ask how to drop observations in such follwing dataset. See the pic below for dat…
Variable generationHi Statlist, so, I have a problem constructing two variables. I briefly describe my data here below…
best way to "set obs" when the number of obs is not clearly known?Hi Fellow Listers, I am trying to generate a sequence of values based on a numlist from 1 to X in a…
Subscribe to:
Post Comments (Atom)
0 Response to cureregr: post-estimation problem predicting hazards
Post a Comment