Hi, I want to create a new variable based on a year variable already within the dataset. The years in my dataset are 2008, 2009,2016, and 2017. I want to combine the years 2008 and 2009 so it forms wave 1. Then combine 2016 and 2017 so it forms wave 2. I'm not sure how to do this? Thanks
Related Posts with New Variable
Filling in missing values in long dataset using other non-missing valuesHello, I have a long dataset that includes data on events. Each individual experiences many interva…
generalised structural equation modellingDear all, I will please like to find out how to include controls in mediation analysis using genera…
Non-normally distributed residuals, advice on how to detrend dataCode for fixed effect regression using Driscoll-Kraay standard errors and residual prediction : Co…
Ordered Logit RegressionDear Statalisters, I have a quick question regarding ordered logits. I have a panel dataset with i…
Trivial question: what does f. stand for?Sorry if this is obvious, but I cannot find an answer As an example gen treatment=0 if (expectatio…
Subscribe to:
Post Comments (Atom)
0 Response to New Variable
Post a Comment