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/