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
Error in Time Series Plot when laggedHello All! I am working with sectoral employment data pulled from the FRED using "import fred". Aft…
Testing revenue convergence hypothesisHi, I would like to replicate the convergece test Dobson, Goddard and Ramlogan use in the article R…
create a table with two "variable-groups" as x- and y-axis and the corresponding returns for each combinationHello I am trying to recreate table1, panel A from Fama & French (2015), which looks as follows…
perfect prediction issue in mi impute chained with 3-way interaction termI am imputing the interaction terms in a three way interaction using mi impute chained; I use the Ro…
Repeated random sampling without replacement from a panel dataI have annual stock returns for a number of firms for about 20 years. The total firm-year obs are ab…
Subscribe to:
Post Comments (Atom)
0 Response to Adding string variables together
Post a Comment