Never say that you have an easy problem. It
suggests that with a bit more effort you
could solve it yourself!
More seriously, check out -statsby-.
Nick
[email protected]
Mazhar Islam
> I guess I have an easy problem. I want to regress on a
> group basis (see a part of my data below). So in this
> case I can do the following
>
> by class: regress weight year
>
> and I get all results in the output window. But what I
> want is just the coefficients and t-values by group in
> a table preferably in a separate file. Can anyone help
> me? Can I use do loop ?
>
> class year weight
> 086 1972 0
> 086 1973 .830583
> 091 1977 3.845524
> 091 1978 15.34797
*
* 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/