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
incorporating RE in xtglsDear statalisters, I would like to carry out the GLS estimation for random effects using Stata. I h…
Copy values from one variable to other cases in same groupDear Statalist, I'm using version 14.2 for windows. I have the following dataset (short example, th…
ivreg2 gmm: Montiel Olea and Pflueger testHi, I am using ivreg2 gmm specification with one endogenous regression and multiple instrument and c…
graphHi all, I have been away from using stata for a couple of years hence am asking a perhaps very stup…
metan for mean differences?Hello, I am conducting a systematic review and the majority of studies present their results as mea…
Subscribe to:
Post Comments (Atom)
0 Response to Generating New variable based on data
Post a Comment