![]() ![]() (when I left the 0 as is of the independent variable): Coefficients: (I've tried to modify that independent variable from 0 to 1, here are the results: What if we are asked to look at 0's of the dependent variable ( target), do we need to transform 0's to 1 in the dataset before conducting the glm ?ĭo I need to change all 0'es of the independents variables to 1 ( and all 1's to 0's) to correctly interpret the model results ? The independent variables of interest should be 1 if they are causative of the disease, like smoking 1, if smoking is 0, than there is no smoking. Logistic regression is done when the dependent variable of interest should be 1 ( like disease = 1), 0 means no disease. I'm doing a logistic regression in R and I'd like to know how to select the dependent and independent variables, ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. Archives
December 2022
Categories |