I am using the stcox command to perform a CPH regression in stata. The code sample looks like this:
stset fyear, failure(adopt == 1) id(state)
stcox state_lnGDP state_lnpop personal_income_pc , vce(cluster state)
stcox state_lnGDP state_lnpop personal_income_pc unemployment_rate , vce(cluster state)
stcox state_lnGDP state_lnpop personal_income_pc unemployment_rate capx_growth_state, vce(cluster state)
Now my question is: Why is it that every time I open and re-run the do.file, I always get different hazard ratios or coefficients for each independent variable than the last time? And the significance of each variable also changes? How can I obtain consistent results?
stset fyear, failure(adopt == 1) id(state)
stcox state_lnGDP state_lnpop personal_income_pc , vce(cluster state)
stcox state_lnGDP state_lnpop personal_income_pc unemployment_rate , vce(cluster state)
stcox state_lnGDP state_lnpop personal_income_pc unemployment_rate capx_growth_state, vce(cluster state)
Now my question is: Why is it that every time I open and re-run the do.file, I always get different hazard ratios or coefficients for each independent variable than the last time? And the significance of each variable also changes? How can I obtain consistent results?
Comment