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
Formatting in the command: generate _registration_date = date(registration_date, "DMY")Hi, I have a string variable for the registration data and I am trying to destring it. I am running…
Deleting variables with specific values in a specific rowI would like to keep variables if the third-row value is SHD. If the third-row value is not SHD, I w…
More than one change point in interrupted time-seriesDear colleagues the data below is a subset of my data that I am intending to analyse using interrupt…
Observe the jumps of (number of) observations and drop the outliersHello, I'ma beginner in Stata and I have some questions on observing the jumps of number of observ…
Data ManipulationI want to replace the missing observations in HSCode variable with the previous HScode. I use the fo…
Subscribe to:
Post Comments (Atom)
0 Response to Decomposing regression into within and between effects
Post a Comment