binomial logistic regression response variables #341
-
Hello, Is there a way to code the response variable when it is a two-column matrix of counts when using binomial logistic regression with the following code: run_ml(data, method="glmnet", outcome_colname="y", kfold=5, cv_times=100, training_frac=0.8) I might be wrong, but it seems the outcome_colname option only allows one column as the input. I would like to use a "y" which includes the counts of individuals with disease and without disease. An example of "y" would be: disease no_disease Thanks. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 6 replies
-
Hi @Shan-square, mikropml and caret require a data frame where the |
Beta Was this translation helpful? Give feedback.
Oh by the way, this will perform linear regression since the outcome column will be a continuous variable. Logistic regression is for categorical variables.