Hi,
I have 15 big data sets where I want to keep only a few variables and I want to do the same to my other datasets.
The problem is that the variable names differ in those data sets and same variables have only the same labels.
(e.g. variable "aaqhi" in data set 1 and "aaghx" in data set 2 both have the same label as "Date of Birth")
So I'm looking for a way to keep variables using their labels, in all those data sets, save them on the existing data sets and then merge all the data sets.
The thing is I do not know how to use variable labels in functions instead of names and I have already searched the forum but did not find anything.
many thanks,
Arman.
Related Posts with Subsetting data using labels
Fractional RegressionHello, I have to perform a regression and my dependent variable is a probability. My two independen…
Common Trends QuestionFellows! I'm sorry for what is a probably basic question but I'm really needing help. I'm currentl…
How to do a EM for my mixture modelDear statalist: I want to do a mixture model of two ols whose coffients are constrained to be same.I…
Looping correlation between variablesHi, With following data: Code: * Example generated by -dataex-. To install: ssc install dataex cle…
Interaction with instrumented variableI am measuring the impact of distance to the nearest city on employment outcomes. Y = b0 + b1*X1 + …
Subscribe to:
Post Comments (Atom)
0 Response to Subsetting data using labels
Post a Comment