Hello everyone.
I am trying to replace the values in an old variable with ones from a new variable. The new variable only appears in the dataset if a person wants to update their information otherwise there will be no variable generated. This new variable takes on the same name as old variable but ends with a suffix '_n'.
Example:
Old variable: education
New Variable: education_n
The idea is that if the dataset has the occurrence of a new variable, then replace values of old one with new one for all non-missing occurrences. This is more like automating a task so that I do not have to manually enter the variables each time.
Related Posts with Replacing values in a variable
Staggered difference in differenceHi, I need to run a difference in difference, but I'm not sure how to construct a formula for this.…
rangestat questionHellow I have a question in rangestat why do I always get the result that never calculates? My mean …
Treatments before running fractional probit modelHi, I am using a dataset for 25 countries over the period of 5 years (balanced panel) with a few mis…
Panel data with small T small N and endogenous variableI have a panel data with small T (T = 11) small N (N=18) with 01 endogenous variable. Which methodol…
Partial options and excluded instruments in xtivreg2Dear all, I am looking to the impact of immigration on firm level outcomes during the period 2006-2…
Subscribe to:
Post Comments (Atom)
0 Response to Replacing values in a variable
Post a Comment