Statalist


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

st: Understanding graphs


From   Claude Francoeur <[email protected]>
To   "[email protected]" <[email protected]>
Subject   st: Understanding graphs
Date   Sat, 03 Jan 2009 12:05:28 -0500

Hello,

I produced a graph using the following commands :

adjust, by(x) replace

line xb x, sort

I understand that this tells Stata to use the mean of xb for each category of x (x = 0,1,2,3,4,5,6; n=289)to produce the graph.

I would like to replicate this graph using "predict" (to make sure that understand correctly). How can I tell Stata to use the mean of x? How should I modify the following commands :

predict yhat, xb

line yhat demo1, sort


Thank you for your help!

Claude
*
*   For searches and help try:
*   http://www.stata.com/help.cgi?search
*   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