Correcting logistic regression code to use the train dataframe rather than the full raw data df which includes individuals with missing final_pathology.
Also rename the prefix binary_logistic[s] > glm as it doesn't make much sense, logistic regression implies a binary/dichotomous outcome variable and not all of the predictor variables are binary/dichotomous (there are some binary, but also categorical and continuous variables).
Correcting logistic regression code to use the
train
dataframe rather than the full raw datadf
which includes individuals with missingfinal_pathology
.Also rename the prefix
binary_logistic[s]
>glm
as it doesn't make much sense, logistic regression implies a binary/dichotomous outcome variable and not all of the predictor variables are binary/dichotomous (there are some binary, but also categorical and continuous variables).