[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]
st: RE: fixed, random effects
For fixed effects with weights you could use -areg- and for random effects
you could use Kevin McKinney's -rfregk-
webuse grunfeld, clear
areg invest mvalue [aw = kstock], ab(com)
rfregk invest mvalue [aw = kstock]
Hope this helps,
[mailto:firstname.lastname@example.org] On Behalf Of Raphael Schoenle
Sent: Sunday, November 27, 2005 10:18 AM
Subject: st: fixed, random effects
I have tried to solve a simple problem for days but I can't figure out how
to run it properly in Stata. If someone could give me a hint, this would be
Basically, I want to run a standard fixed, and random effects regression
(xtreg in STATA) but with _variable_ weights (they correspond to changing
industry shares in the market).
So, for the random effects I tried gllamm but always get an error message of
insufficient observations when I try to use weights.
Here is what I do:
gllamm dsc dperc dcomp, i(ind7090) pw(wt)
any ideas what goes wrong?
(if there are no weights, then we just get the xtreg dsc dperc dcomp, fe
* For searches and help try: