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
No standard errors reported for some variables when using xtlsdvcHello, I am trying to use xtlsdvc to correct for the bias in the dynamic panel model. However, I d…
Problem with ConditionsDear Statalist, I am analyzing a dataset that incorporates a directed-dyad year unit of analysis. Bu…
Industry as a control variablesHello, I'm doing my master thesis and I'm using a multitple linear regression. I'm regressing CSR pe…
IVprobit (opposit signs of first step regression to a simple regression)Hi All Code: ivprobit Y (X=religioniv) CONTROLS i.isic i.ccode, vce(robust) When I use ivprobit mo…
finding duplicate values between two variablesDear all, I am using Stata 15 and for my panel data I have director IDs (Director_ID) and the CEO I…
Subscribe to:
Post Comments (Atom)
0 Response to Creating a change variable, panel data
Post a Comment