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: Weighted regression with unbalanced Panel Data
From
Roland Lindenblatt <[email protected]>
To
"[email protected]" <[email protected]>
Subject
st: Weighted regression with unbalanced Panel Data
Date
Fri, 7 Feb 2014 19:35:20 +0000 (GMT)
Hello,
I have unbalanced panel data and am trying to do regressions with and
without fixed effects.
I am trying to identify a treatment effect and therefore each observation is
assigend the treatment varibale after [0;1].
Treatment occurs in different periods and therefore some individuals have
e.g. 2 observations before and 8 after, others the other way around and so
on.
I would like to apply weighting to account for these differences. So I
assigned a weight to each observation according to the number of times there
are observations for each individual in the before and after periods.
Of course, afterwards weights vary within individuals for the before and
after periods.
If I now try to use xtreg with fixed effects , Stata tells me "weight must
be constant within id".
Is there a way to get around that.
Thanks for helping me!
*
* For searches and help try:
* http://www.stata.com/help.cgi?search
* http://www.stata.com/support/faqs/resources/statalist-faq/
* http://www.ats.ucla.edu/stat/stata/