Hi
I have a dataset that has some variables, say, X1-X10. The corresponding variable labels are 2018:q1, 2018q2, and so on. i want to rename the variables and set their labels as the new name, such that my new variable names be something like var_2018_q1, var_2018_q2, etc. I would appreciate it if anyone can help.
Thanks,
Related Posts with assign variable label to variable name
m:m merging - clarificationHi there, I have 2 datasets; one shows the data of patients who were diagnosed with cancers and the…
How to drop repeated years in a panel datasetHi everyone, I have a panel dataset with countries and years from 1999 to 2019. However, for each c…
Dummy dependent: ANOVA v logitThis is a statistics question rather than a Stata question, but would appreciate any advice. After …
Baseline table package showing p-value and statistics-value There has been some useful table1 package, such as table1 and table1_mc. However, they can not show…
Subgroup Analysis and Sample Selection BiasI employ a DiD model and want to compare the effect of independent variable (post##treatment) on a d…
Subscribe to:
Post Comments (Atom)
0 Response to assign variable label to variable name
Post a Comment