Stata The Stata listserver
[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]

st: stcurve - help

Subject   st: stcurve - help
Date   Mon, 24 Feb 2003 07:32:43 -0500


I am running a model with a few categorical variables eg; sex, marital status or occupation:

xi: streg i.marstat i.occup, dist(gompertz) robust hr

After the estimation I would like to generate curves for each variable. Eg a graph where I show the hazard for males and females

Or a graph for the occupational categories. Here is what I am doing:

stcurve, hazard /*
*/ at1(occup=1) /*
*/ at2(occup=2) /*
*/ at3(occup=3) /*
*/  at4(occup=4)/*
*/ at5(occup=5) /*
*/ at6(occup=6) /*
*/ at7(occup=7) 

For some reason it does not work. The error message that I get is:

at( ) variable occup not in the estimated model

Do you know what I am doing wrong and how I can correct it? 
Thank you in advance

*   For searches and help try:

© Copyright 1996–2019 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index