# Re: st: Re: Basic question on "estimates"

 From Philipp Rehm <[email protected]> To [email protected] Subject Re: st: Re: Basic question on "estimates" Date Tue, 26 Sep 2006 22:36:16 +0200

You may want to try this:

statsby _b, by(_3) saving(C:\da_temp\coef.dta, replace) : reg _19 _7 [iw=_22]

(in one line - or delimited - , of course)

HTH
Philipp

Pancho Villa wrote:

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/

```
```*
*   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/
```