Statalist The Stata Listserver


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

Re: st: RE: xtreg, fe and weights


From   "Daniel H. Simon" <dhs29@cornell.edu>
To   statalist@hsphsun2.harvard.edu
Subject   Re: st: RE: xtreg, fe and weights
Date   Thu, 28 Sep 2006 16:43:16 -0400

Mark - that works perfectly! thank you very much for helping me this time, and other times as well. Daniel

At 04:33 PM 9/28/2006, you wrote:

Daniel,

> -----Original Message-----
> From: owner-statalist@hsphsun2.harvard.edu
> [mailto:owner-statalist@hsphsun2.harvard.edu] On Behalf Of
> Daniel H. Simon
> Sent: 28 September 2006 21:25
> To: statalist@hsphsun2.harvard.edu; statalist@hsphsun2.harvard.edu
> Subject: st: xtreg, fe and weights
>
> Hi - I'm estimating a weighted fixed-effects model. I'm using
> -areg- to do so. However, I want to obtain the within
> r-squared. When I try and run -xtreg, fe- with any of the
> weights options, I get an error message that weights are not
> allowed. So, is there any other way to get the within
> r-squared while estimated a weighted fe model? thanks. Daniel

-xtivreg2- supports weights, and straight LSDV as well as IV, so it
should do want you want.

--Mark

Prof. Mark Schaffer
Director, CERT
Department of Economics
School of Management & Languages
Heriot-Watt University, Edinburgh EH14 4AS
tel +44-131-451-3494 / fax +44-131-451-3296
email: m.e.schaffer@hw.ac.uk
web: http://www.sml.hw.ac.uk/ecomes


>
> *
> *   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/
*
*   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–2014 StataCorp LP   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index