I want to decompose the variance of a variable into within- and between group components (over time). I also want to apply sample weights to this decomposition. Is there a command which efficiently provides this weighted decomposition? Of course, I can calculate this step-by-step, but since my data set is very large, eg looping over all groups would take quite a lot of time, so I was hoping that there might be a Stata-provided solution which is more efficient than this manual implementation.
-
Login or Register
- Log in with
Comment