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
Date variable conversion from string formatHi everyone, I have date variables in the following format - yyyymmdd_hhmmss I've looked at the exi…
How to remove vertical line from do-file editorHello there, Is there a way to disable a vertical line from do-file editor? It is not comfortable t…
creating a scale with round numbersHey everyone, I'm creating an attitude scale concerning support of Lesbians' and Gays' rights with …
exclude the dataHello, How can I exclude firms for which I can't compute the lagged ratios? i mean ratios (cash flow…
Including a quadratic term in a linear regression - what to do here?Hi, I am running a linear regression in Stata 17, using the regress command. Based on theory I susp…
Subscribe to:
Post Comments (Atom)
0 Response to Generating New variable based on data
Post a Comment