Hi all! Apologies for the possibly beginner question, I've been searching this forum all afternoon and have not been able to figure out how to do this.
I'm currently working with a survey dataset with two waves (wave 1 and wave 2). Each observation is a particular individual belonging to a particular social group, in a particular state, in wave 1 or 2 of the survey. I'm looking to do two things. First, for each wave I want to find the number of individuals in state x and group i who are employed by the public sector (a binary variable in my dataset), as a percent of the total number of individuals belonging to that social group in that state. Then, I'd like to find the percent change between waves for each (state, group) pair.
So if 25% of individuals (observations) in state 1 who are part of group 3 are employed in the public sector in wave 1, and 30% of individuals in state 1 who are part of group 3 are employed in the public sector in wave 2, then I would want this variable to be equal to ((30-25)/25)*100=10%.
I would appreciate all the help I can get. Thanks so much!
Related Posts with Struggling to create a percent change variable that is organized by multiple subgroupings
GEE and Fixed Effects TobitHello everyone, I have been doing extensive reading for some time to decide upon some appropriate …
cumulative sum that restarts at 0, if observe "0" in the original column.Hi, I have a simple question. I would like to have a cumulate sum that restarts if observing 0 in th…
teffects - predict pscore, psI estimated the following model before estimating. I need to check the predicted propensity score mo…
Latent transition analysis in StataHello scholars, I have seen that the question "Can Stata do latent transition analysis?" was asked …
elasticity- price, income etc. do i use a log-log model or employ mfx-eyex?Hi, I am very new to Stata so I apologise for the amateur-ness of my question. How do I calculate pr…
Subscribe to:
Post Comments (Atom)
0 Response to Struggling to create a percent change variable that is organized by multiple subgroupings
Post a Comment