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
Data generation to simulate Wooldridge's (2005) approach for a dynamic non-linear modelI want to simulate Wooldridge's (2005) approach to estimate a dynamic non-linear model. I have quest…
IV EstimationHi. I instrument two endogenous variables ,x1 and x2 with z1 and z2 respectively and used the foll…
BMI in BHPS, OLS and Probit modelI am using the British Household Panel Survey Data in order to find the effect of BMI on wages. I wi…
reghdfeHi Im using reghdfe regression bc i have a lot of fixed effects I will like to test my model for h…
Parallel Trend Graph and Staggered DIDHi all, I seek your advise about parallel trend graph in a staggered diff-in-diff setting. I am exa…
Subscribe to:
Post Comments (Atom)
0 Response to Subsetting data using labels
Post a Comment