Statalist


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

Re: st: AW: how to get slopes by clusters in a linear regression


From   László Sándor <[email protected]>
To   [email protected]
Subject   Re: st: AW: how to get slopes by clusters in a linear regression
Date   Tue, 25 Aug 2009 11:47:39 -0400

Thank you, Martin!

I don't see how this could be used to estimate the model in a single
command -- statsby still seem to break down the regression by
clusters, without the intercluster restrictions on the
controls/covariates.

However, this led me to try to apply the Frisch-Waugh-Lowell theorem:
I estimate the univariate regression of outcome on treatment by each
cluster, I must only use the residuals for both after regressing them
on the set of controls.

If there is no other way, this seems to be doable.

Thanks again!

Laszlo

On Tue, Aug 25, 2009 at 11:23 AM, Martin Weiss<[email protected]> wrote:
>
> <>
>
>
> ******
> h statsby
> ******
>
>
> HTH
> Martin
>
>
> -----Ursprüngliche Nachricht-----
> Von: [email protected] [mailto:[email protected]] Im Auftrag von László Sándor
> Gesendet: Dienstag, 25. August 2009 17:20
> An: [email protected]
> Betreff: st: how to get slopes by clusters in a linear regression
>
> Dear Fellow Statalisters,
>
> I want to extend a fixed-effects-type model to allow for different
> coefficients on a variable (actually a treatment dummy) by each
> cluster I have. The richness of my data would allow for that. However,
> I did not find a way to do it in Stata that would report (and collect)
> the coefficients themselves. -xtmixed- doesn't seem to do so. I would
> like to restrict the coefficients on controls to be equal across
> clusters, so estimation by cluster is not a solution either.
>
> If there were a way that could collect the slopes to a single new
> variable (with the same value for observations in the same cluster,
> naturally), that would be the best. It would be great if I did not
> need to introduce all the 1438 cluster-indicator variables and
> interactions myself, and collect the coefficients.
>
> Thank you for any guidance in advance!
>
> Laszlo
> *
> *   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/
>
>
> *
> *   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/
>

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