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
A stochastic frontier model with correction for sample selection in StataDear Statalist, I am trying to estimate a SFM that can address selection bias. Theoretically, I am …
Matching based on market value with range.Hi, I am trying to Match the companies in my dataset that belong to the test sample 1:1 to a compan…
Generate dummy if last observation for an individual in panel occurs before time xHello, I have a panel of banks from year 1905 to 1910. Some banks have observations for the whole d…
midas: Hessian has become unstable or asymmetric r(504);I have one more query on midas please. While doing analysis, an error statement came up as below Hes…
Tracking changes in datasetHi, I tracked executives across firms and retained those executives who were employed for at least …
Subscribe to:
Post Comments (Atom)
0 Response to Subsetting data using labels
Post a Comment