Hi everyone,
I have a Panel Data Set and want to create a variable which shows me the change of the individual responses between two (and more) variables. So the two variables are these ones:
1. a variable that shows how satisfied people are with the government, ranging from 0 (not very satisfied) to 1 (very satisfied). This variable was conducted on September 2013.
2. The second variable is the same, showing how satisfied people are with the government from 0 (not very satisfied) to 1 (very satisfied). This variable was conducted on December 2013.
So now I want to create a new variable which will calculate the change from the first to the second variable (for example, if one respondent answered the first question with 0 and the second question with 1, it is a change of one-->I want exactly this in a new variable). Unfortunately, I don't have a variable which shows the wave or a time-series variable. I tried a lot but it didn't work. Is there a way to calculate this in STATA (I'm working with Stata 15)?
Maybe someone knows a solution.
Thanks in advance
Related Posts with Creating a change variable, panel data
Flexible Regression Specification for Panel DataDear Stata community, I am currently looking to estimate a somewhat complex regression model to ana…
A question from an absolute beginner: hospitalization dataHi everybody. I have a set of hospital discharge records (time window 2001-2016) with the main diagn…
Combining Cox Proportional Hazards model and Difference-in-DifferencesDear All, My question concerns whether it is possible to combine a Cox proportional hazards model w…
Matching observations across years for same idHi Forum, I am struggling with something very silly but would be very helpful if someone could help…
Test for coefficients of different regressionsDear All, I'm working with Fama & MacBeth regressions. My sample is divided in quintiles and I …
Subscribe to:
Post Comments (Atom)
0 Response to Creating a change variable, panel data
Post a Comment