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
Assigning Date and Groups from Rolled Up (subtotaled) Header DataHello, I have a pretty simple data file that shows and ID variable and a integer variable for number…
Is there a way to decrease the distance between bars in tabplot?Hello there any help would be greatly appreciated. My data looks something like this and I would be…
Generating a table for correlations obtained by groupHello, I would like to generate the correlations between two dependent variables for a large set of…
Predict out of sample daily time seriesDear all I have data on the number of daily infections by COVID-19 and I would like to make predicti…
Storing marginal effects in a loop of regressionsI would like to run several regression via a foreach-loop, calculate marginal effects, store and com…
Subscribe to:
Post Comments (Atom)
0 Response to Labelling variable based on existing label of another variable
Post a Comment