I am trying to run a multinomial logit as y being the number of credit cards an individual has. I re coded the categories for the original data set for having 1-3 credit cards 4-8 and 9 or more. To create my y variable i
This is was the cc variable looks like:
I would only want 0 and 1. What command would give me that outcome instead? Thank you!
Code:
gen cc= credit13 + 2*credit48 + 3*credit9plus
Code:
* Example generated by -dataex-. To install: ssc install dataex clear input float cc 0 1 1 3 1 3 1 1 2 2 1 1 2 1 0 1 0 1 1 2 2 2 1 2 1 0
Comment