Hello All, and Thanks in Advance.
I have a very large dataset for which I need to create a variable- no doubt using egen- but the process is not completely clear to me.
Cases are distributed across about 125 spatial groups and these spatial groupings in continuous variable (1-125).
I am interested in generating a variable that quantifies the mean difference in another binary subgroup variable *within spatial groups*
Example: What is the mean difference in height between subgroup A and subgroup B ----within spatial groups (1-125)
Variables: Height, Subgroup, Spatial Group
Thanks in advance for any advice, and I'm happy to provide further information and/or clarification.
Related Posts with Generating New Variable As A Function of Group-Level Differences Of Another Variable
Stata runs very slow when estimating mixed models in a multiple imputed databaseDear Statalisters, I am using mixedin Stata 13 to assess the effect of a treatment on four different…
Write a function correctly [COLOR=rgba(0, 0, 0, 0.87)]Hello everybody[/COLOR] [COLOR=rgba(0, 0, 0, 0.87)]Can anyone tell me h…
How do i get the mean of all the seperate regressions?Hey, I have the problem that I have multiple regressions of years from 1963 to 2004 and I want the …
longitudinal dataI would be very pleased if someone can provide me references on how to claen longitudinal data. Than…
Stata runs very slow when estimating mixed models in a multiple imputed databaseDear Statalisters, I am using mixedin Stata 13 to assess the effect of a treatment on four different…
Subscribe to:
Post Comments (Atom)
0 Response to Generating New Variable As A Function of Group-Level Differences Of Another Variable
Post a Comment