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
A question about "mi estimate: xtlogit"I tried to use multiple imputation to deal with missing values in a panel data and, then, do logisti…
sort with xtabond2Hello all, What's wrong with command ? by COUNTR (BANK YEAR), sort: xtabond2 ROA L.ROA GRTH MIX EFFI…
observations deleted after extracting part of a string variableHi, I am working with the National Longitudinal Study of Youth 1997. The set of variables yempid den…
Applying Arellano-BondHello everyone, My regression looks in the following way: yit=a0 + a1xit + a2Dit +a3Lit + a4mit + …
Values of a variable as label of values of other variableI have 2 variables, X1 and X2 and I want to use the values of X2 as label for the values of X1: X…
Subscribe to:
Post Comments (Atom)
0 Response to Shorten variable labels using foreach
Post a Comment