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
Does -display- leave anything behind? How does one access the result when using -display- as a hand calculator?Good morning, I am using -display- as a hand calculator a lot. (Ryan, P. (2004). Stata tip 4: Using…
Write a stata program to control for sample weight?Dear friends, could you help me on writing a stata program to control for sample weight? Code: pro…
Heckman two stage model : question about OLS regressionHi , I'm trying to use the two stage heckman model to estimate the demand of natural gas in househol…
Hausman test with reghdfeHey everyone! I am currently trying to perform a Hausman test to decide whether to perform a Random…
Panel Data: Dividing a Variable into Quartiles and Creation of Indicator Variable Based on the QuartileDear all, I have a panel data (based on firmID and year). For a cerain variable (VAR1) I would like…
Subscribe to:
Post Comments (Atom)
0 Response to Adding string variables together
Post a Comment