[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
st: Understanding graphs
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/