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
Parallel Trends Assumption in Difference-in-Differences (DiD)Hello guys, recently I´m doing some research on the risk behavior of banks during the low interest …
make loop for different deciles with eclass programDear all, I use user written command oaxaca_rif by Rios-Avila (Rios-Avila, F. 2020. Recentered infl…
Right way to extract Confidence Intervals of coefficients of interaction termDear all, I was wondering about what would the right way to form a list or matrix or a variable (ei…
hyperlink in Stata graphHi, I would like to include a hyperlink in the footnote of a graph. For instance: clear all webus…
VAR or VECM- which one to use?If I have 4 variables in a model and I want to check for causality between the two variables say X a…
Subscribe to:
Post Comments (Atom)
0 Response to cureregr: post-estimation problem predicting hazards
Post a Comment