Hi,
I am dealing w panel data and have a string variable (rating) that takes on let's say the values A B C D E. I want to recode these values so that I have A B E, where B = B + C + D. So, if the rating takes on the value B, C, or D, it will now be coded as B. Is this possible at all?
Thanks,
Sandra
Related Posts with Adding string variables together
Keep only matching valuesI have a dataset that lists all products sold in a one year period in two stores. The quantity sold …
Is there an easy way to rename multiple variables?Hi, I have a wide dataset and variable names are like Code: v1, v2, v3,..., v100. I want to drop v3…
Interaction versus margins dydx pwcompareI am researching the effect of Geographic Segment Diversification (GSD) on firm performance (EBIT RO…
Comparing coefficients across DRsI run doubly robust regressions after running PSMatch2 on two different samples. I would like to com…
log dependent variable and % independent variableHello Statalisters, I probably have an easy to answer question. However, I couldn't find the answer…
Subscribe to:
Post Comments (Atom)
0 Response to Adding string variables together
Post a Comment