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
merging the same dates into my dataDear statalist members, Im trying to manage my data. My data is like this dataset clear all input …
Why some control variables are dropped when I run a regression?Dear Stata Users, I have the following problem. When I run the regression as specified below my var…
Multiple variables in one matrix - to putexcelHello folks, Been trying to figure this one out but keep getting roadblocks. Wondered if anyone els…
Hausman test with omitted variables - still valid?Hi Statalist In the help files for -hausman- we see an example (eg1 on p.894, Stata 16) in which al…
Failure CurveHi, I am trying to generate a Kaplan Meier graph using my data set looking at recurrence after a su…
Subscribe to:
Post Comments (Atom)
0 Response to Generating New variable based on data
Post a Comment