This is what I mean:
***********************************************************************************************
. use "C:\da_temp\da_89.dta", clear
. statsby "regress _19 _7" _b, by(_3) saving(C:\da_temp\coef.dta)
command: regress _19 _7
statistics: b__7 = _b[_7]
b_cons = _b[_cons]
by: _3
. statsby "regress _19 _7 [iw=_22]" _b, by(_3) saving(C:\da_temp\coef2.dta)
weights not allowed
r(101);
***********************************************************************************************
That message "weights not allowed" appears in the Results window in
red. OTOH, without weights, no problem.
Doroteo
On 9/26/06, Michael Blasnik <[email protected]> wrote:
...
I have not encountered ay problem using statsby with weights. Could you
please explain what you mean by "doesn't work".
*
* 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/