Hi everyone,
I am currently working with data of following Format
Year Region Dummy
2001 11 0
2001 11 0
2001 11 1
2001 12 1
2001 12 1
2001 12 0
2002 11 1
2002 11 1
2002 11 1
2002 12 1
2002 12 0
I want to collapse the data in such a way that i have result like this
Year Region percentage of population in a region in a given year that has dummy value 1
2001 11 0.33
2001 12 0.66
2002 11 1
2002 12 0.66
Any help in this regard is highly appreciated.
Related Posts with Collapse with percentage of population in a dummy variable wrt region and year
How to create a variable equal to the kurtosis?Hello Statalist community, I am currently struggling to achieve the following: I would like to crea…
How to run stata-se from bashDear statatlists, I'm new to Statalist, so any comment on the style of this post are welcome. I'm …
Doubts regarding margins, logarithmics in marginplot and contrastHello! I have some doubts regarding if I am interpreting the results from command margins the corre…
Analyzing World Bank Dev, IndicatorsI am working on the attached data and new stata user. Can I get commands for the mean, minimum, and …
Estimating EndogenityI am using ivregress 2sls command to estimate endogenity I am using below variables; Dependent vari…
Subscribe to:
Post Comments (Atom)
0 Response to Collapse with percentage of population in a dummy variable wrt region and year
Post a Comment