Bookmark and Share

Notice: On April 23, 2014, Statalist moved from an email list to a forum, based at statalist.org.


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

st: RE: Use of aweights command in xtivreg2


From   "Schaffer, Mark E" <[email protected]>
To   <[email protected]>
Subject   st: RE: Use of aweights command in xtivreg2
Date   Wed, 7 Mar 2012 14:27:26 -0000

Dan,

> -----Original Message-----
> From: [email protected] 
> [mailto:[email protected]] On Behalf Of 
> Daniel Brown
> Sent: 05 March 2012 16:45
> To: [email protected]
> Subject: st: Use of aweights command in xtivreg2
> 
> Dear Statalist,
> 
> I am running weighted regressions using the aweights command 
> (to reflect the fact that the observations for my dependent 
> variable are themselves averages calculated on the basis of a 
> varying number of underlying observations). When I perform 
> fixed effects regressions, Stata does not allow me to weight 
> observations for the same cross-sectional unit in different 
> time periods differently. However, when I then perform IV 
> analysis controlling for fixed effects using xtivreg2 (,fe), 
> I apparently can weight observations in different time 
> periods within a cross-sectional unit differently. I wanted 
> to know why I am able to do this when using xtivreg2 (,fe) 
> but not when using xtreg (,fe)?

xtivreg2,fe allows weights because it was easy enough to program the
feature - xtivreg2 is just a wrapper for ivreg2.

But whether or not weighting makes sense is up to the user.

xtivreg,fe does not allow weights, but areg - which reports the same
estimator - does.  The rationale is in -help areg-:

"areg is designed for datasets with many groups, but not a number of
groups that increases with the sample size.  See the xtreg, fe command
in [XT] xtreg for an estimator that handles the case in which the number
of groups increases with the sample size."

HTH,
Mark

> 
> Thanks,
> 
> Dan
> *
> *   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/
> 


-- 
Heriot-Watt University is the Sunday Times
Scottish University of the Year 2011-2012

We invite research leaders and ambitious early career
researchers to join us in leading and driving research
in key inter-disciplinary themes. Please see 

    http://www.hw.ac.uk/researchleaders

for further information and how to apply.

Heriot-Watt University is a Scottish charity
registered under charity number SC000278.


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


© Copyright 1996–2018 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   Site index