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

st: stcurve - help


From   [email protected]
To   [email protected]
Subject   st: stcurve - help
Date   Mon, 24 Feb 2003 07:32:43 -0500

Hello 

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

xi: streg i.sex 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
Best
Edlira

*
*   For searches and help try:
*   http://www.stata.com/support/faqs/res/findit.html
*   http://www.stata.com/support/statalist/faq
*   http://www.ats.ucla.edu/stat/stata/



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