Hello,
I was wondering if there is a command that enables you to label a variable based on an existing variable label
e.g.
I have a variable X and I use the command:
label variable x "apples"
Now I want to run a loop generating variables from x, but I want to include in that loop to label them as "apples" or whatever the existing label for variable x is.
TIA!
Cheers,
Jess
Related Posts with Labelling variable based on existing label of another variable
ttest across multiple categoriesI am trying to replicate Table 2 from this paper http://ftp.iza.org/dp5706.pdf, where the difference…
Test whether the difference between two differences is significantHi, I have a dataset with a continous dependent variable VAR and two binary independent variables. …
About code foldingHi,everyone! When I write commands in do-file editor and there is a lot of commands, I always want …
Move variable names to 1 row observationsI would like to move variable names to the 1st row observations (as string) In the following exampl…
selection variable by loop 95% samples in stata16Dear Statistical users: For help, I want to randomly select 95% of a sample for logistic regression,…
Subscribe to:
Post Comments (Atom)
0 Response to Labelling variable based on existing label of another variable
Post a Comment