Consider the following baseline model: yijk = beta * xijk + errorijk
where i indicates a child, j indicates a family, and k indicates a school.
y is a measure of human capital and x is the quality of the school that the child attends.
I want to decompose beta into a within family component and an across family component. I haven't found a very straight-forward way of doing this in stata (the extended model contains controls and weights). I was hoping to be able to use some of Stata's panel tools but haven't found a way to do so.
Related Posts with Decomposing regression into within and between effects
Sensitivity Analysis for Causal Mediation with Interacted Independent VariableHello! I am conducting a causal mediation analysis in which treatment --> mediator --> outcome…
can we set history window and variable window appear at the same time for Stata Maccan we set history window and variable window appear at the same time for Stata Mac? Every time I ne…
interaction term in regressionHello everybody, I have a question regarding regression's (statistical) interpretation with an inte…
Proportion test for multiple groupsHi, I want to compare how does use of drug "A" differs across age categories. Total drug A users w…
How to reproduce fracreg with gsemDear Statalisters, I have a question about how to reproduce the results of fracreg with the probit …
Subscribe to:
Post Comments (Atom)
0 Response to Decomposing regression into within and between effects
Post a Comment