Hello
I am trying to shorten the labels of the variable in my dataset. Eg:
storage display value
variable name type format label variable label
-----------------------------------------------------------------------------------------------------------------------
resp_agr_deci~n str1 %9s survey/Group1/resp_agr_decision
resp_joint_ag~c str1 %9s survey/Group1/resp_joint_agr_decision
I need to eliminate the first part of the label "survey/Group1/" from each variable label. Is it possible to do it by using substr with foreach command?
Thank You
Smriti
Related Posts with Shorten variable labels using foreach
matching FrontierI wonder if anyone has attempted a Stata version of the matching Frontier program of King et al. The…
sample used by teffects matching estimatorsDoes the teffects suite of commands include a command showing how many records at each treatment lev…
using rangestat to create leave one out sumsHi, I am trying to create by group sums of a variable and my data includes three variables: a distr…
mixed model with a baseline differencesDear all, I have a data set of 70 patient in a intervention foloow up study. 4 of the patient did d…
Generate a MatrixHi all, I am having a problem generating a matrix from data. Suppose I have a dataset like this …
Subscribe to:
Post Comments (Atom)
0 Response to Shorten variable labels using foreach
Post a Comment