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
Place date year on a second line on x-axisMy x-axis data is currently in date (week) format, so my current code as part of a twoway graph is a…
MNAR data and factor analysis/latent variable analysisDear community, I hope it is alright that I am asking some quite basic questions. I have collected …
How to write correctly the panel data regression in the command Stata?Good morning to the community. I've read a lot of books and I've seen a lot of videos on panel data …
Help Regarding "esttab"Greetings Everyone! Hopefully, you will be fine, I want to add Groups(Firms) in the Regression Tabl…
collapse variable in more than 1 way in one collapse commandIs it possible to collapse the same variable in more than 1 way in 1 collapse command (e.g., to get …
Subscribe to:
Post Comments (Atom)
0 Response to Decomposing regression into within and between effects
Post a Comment