Dear statalists,
I really would appreciate your help.
I am trying to estimate the simplest model for time to retirement for couples assuming independence between partners. I have written the code for ml and I get an error message telling "too few variables specified" just before the line code for maximizing the LL function and I am not able to find what is wrong.
My data:
I look at time to retirement since first quarter 2010 until 2017 for couples working in the first quarter 2010.
Each row corresponds to a quarter. id is the uniq identifier for couples. Each individual has the dummy for censored data.
The Baseline hazard is piecewise constant (tp). These dummies are included in each beta. I asume that the time increment is unitary.
The model is based on An, Christensen and Gupta (2004)
The code for this is in the following file: ( Array
Thanks for your time and help
Best wishes
Amparo
Related Posts with ML bivariate discrete time duration. Error 102 too few variables specified
How to calculate ICC1 and ICC2 with unbalanced data?Hi all, I have a problem with the -icc- command. It omits a large number of observations with unbala…
Days overlap in two date rangesThis may be a basic question, but is there a straightforward way to calculate the number of days tha…
Exporting instrument test results from ivreg2Following is my ivreg2 code Code: asdoc ivreg2 pro l.le l.a (rec interaction= pay ca bor),nest re…
How to remove rows containing ratees not in the rater list in a team?I would like to remove the rows containing ratees not in the rater list. For example, in the dataset…
How to replace missing values for certain rows in STATAI'm wondering how to replace missing values in STATA for certain rows only (as noted above). I have…
Subscribe to:
Post Comments (Atom)
0 Response to ML bivariate discrete time duration. Error 102 too few variables specified
Post a Comment