Statalist The Stata Listserver


[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]

RE: st: RE: Question regarding postgr3


From   "Maarten Buis" <[email protected]>
To   <[email protected]>
Subject   RE: st: RE: Question regarding postgr3
Date   Tue, 9 Jan 2007 14:35:08 +0100

--- Stijn Ruiter wrote:
Running the program is not the problem.
 
I misread your question.

Consider the example below: mpg in the example is 
year in your data. It plots for each value of mpg 
(year) the predicted probabilities for a car with 
a mean value on price for all cars with that value 
on mpg.

*------- begin example ------
sysuse auto, clear
logit foreign price mpg 
adjust , by(mpg) pr replace
scatter pr mpg
*------ end example --------

Hope this helps,
Maarten

-----------------------------------------
Maarten L. Buis
Department of Social Research Methodology 
Vrije Universiteit Amsterdam 
Boelelaan 1081 
1081 HV Amsterdam 
The Netherlands

visiting address:
Buitenveldertselaan 3 (Metropolitan), room Z434 

+31 20 5986715

http://home.fsw.vu.nl/m.buis/
-----------------------------------------

 

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