I am using data from the Luxembourg Income study but the data is coded, for example for Ireland in 1983: "ie83". Can anyone help me by showing a way to create a year variable equal to "1983" and a country variable equal to "Ireland" based on the information in the string variable?
Thank you in advance
Related Posts with Generating New variable based on data
countries and longitudinal dataDear Statalisters, I have a dataset, which involves the fifth wave of SHARE DATA and I want to exam…
Causal Mediation on imputed dataDear Statalisters, To carry causal Mediation analysis, I am using the Mediation package (Medeff com…
How to remove the average from marginplotHello, I got 2 continous variables with an interaction, I'm trying to visualise that as a graph, h…
Difference-in-Difference Regression with multiple time periodsDear Statalists, I am currently investigating Acquirer Performance before and after M&A deals. …
keep only panel obsHello everyone, I am trying to run a diff in diff in stata. I have more than 3,500 obs, some of them…
Subscribe to:
Post Comments (Atom)
0 Response to Generating New variable based on data
Post a Comment