Statalist The Stata Listserver


[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]

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


From   "Michael Blasnik" <[email protected]>
To   <[email protected]>
Subject   Re: st: Re: Basic question on "estimates"
Date   Tue, 26 Sep 2006 16:31:53 -0400

You didn't say you were running an older version of Stata. In Stata 9 weights work fine with statsby. One potential work around for Stata 8 would be for you to write your own wrapper command that statsby can call where the weights are specified differently (e.g., through an option). You could also just write a loop and post results to a file to accomplish what statsby does.


----- Original Message ----- From: "Pancho Villa" <[email protected]>
To: <[email protected]>
Sent: Tuesday, September 26, 2006 4:17 PM
Subject: Re: st: Re: Basic question on "estimates"



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);
*
*   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/



© Copyright 1996–2024 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index