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

st: Re: RE: Graphing predicted probability for a group of age group dummies


From   "george m hoffman" <[email protected]>
To   <[email protected]>
Subject   st: Re: RE: Graphing predicted probability for a group of age group dummies
Date   Tue, 22 Feb 2005 21:31:18 -0600

search for 'predxcat.ado' and you will find a great program to do all sorts 
of these calculations and graphs
http://ideas.repec.org/c/boc/bocode/s402601.html
----- Original Message ----- 
From: "Scott Merryman" <[email protected]>
To: <[email protected]>
Sent: Tuesday, February 22, 2005 7:52 PM
Subject: st: RE: Graphing predicted probability for a group of age group 
dummies


Tony,

Do you mean something like this:

sysuse auto,clear

xtile p2 = price, n(5)

tab p2, gen(D)

gen byte gender = uniform() <.5

probit fore D* gender, nocons

replace gender = 0

predict prob_male

replace gend = 1

predict prob_female

collapse (mean)  prob*, by(p2)

twoway line  prob* p2


Hope this helps,
Scott


> -----Original Message-----
> From: [email protected] [mailto:owner-
> [email protected]] On Behalf Of [email protected]
> Sent: Sunday, February 20, 2005 10:21 PM
> To: [email protected]
> Subject: st: Graphing predicted probability for a group of age group
> dummies
>
> I have run a probit model with age group dummies as explanatory variables,
> age 20 to 25, age 26 to
> 29  age 30 to 34 etc .  How do I graph the predicted probabilities on the
> X-axis and the different age groups on the Y-axis  for male and
> female with Stata 8.1?
>
> Thank you for you help.
>
> Tony
>



*
*   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/

*
*   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