Statalist


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

Re: st: Understanding graphs


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

Hello,

I'm sorry, my question should have been clearer.

I already read the reference suggested (and went through the examples meticulously). It was helpful to understand the command "adjust" compared to "predict".

As "adjust is really just a front end for predict", I should be able to replicate the following commands :

adjust, by(x) replace

line xb x, sort

with the predict command :

predict yhat, xb

How to tell Stata to use the mean of yhat (xb) for each category of x (x = 0,1,2,3,4,5,6; n=289):

line mean(yhat)by(X), x, sort ??

Thanks 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