I have a dependent variable which has values of 1 and 2. How can i convert it to 0 and 1?
I have another query w.r.t to the independent variables i.e.
Q: While running a logistic regression, is is mandatory to convert all the independent variables into dummies? Sa for eg: I have a variables X which has values ranging from 1 to 10. Do i need to create dummies for this variable X before running the regression?