Hi, I know this may seem simple but I just can't figure it out.
I have 3 variables: Time, serial, code
Time expresses years, serial is a identifier variable and code is a variable which ranges between 1 and 50.
I want to generate a new variable (lets call it "nv") which contains the values of this 3 variables in this order: Time|serial|code
So for example if I have the following:
Time: 1999
serial: 143
code: 4
My new variable should look like this:
nv: 19991434
Thanks for your help.
Related Posts with Generate a variable containing the values of other variables
bloated estimates and CIs in regression of relative survivalhi all I am using Paul Lambert's stpm2 to regress relative survival on a set of covariates. Before r…
Choosing between xtpoisson and xtreg for a non-poisson variableDear Forum, I have a panel dataset of US imports from 130 exporters over 48 years. I am running two…
Using foreach on for a subset of the dataHello, I am trying to replace missing values of ptfidelity_9_ - ptfidelity_11_ below with 0 Code: f…
Perron-Vogelsang unit root test for endogenous breaksHello everyone, does anyone know if the unit root test of Perron-Vogelsang exists in stata? …
Hausman test interpretationSo today i made a Hausman test. But i am not sure how to interpret my results. Can you help me? Arra…
Subscribe to:
Post Comments (Atom)
0 Response to Generate a variable containing the values of other variables
Post a Comment