Allow successes/failures matrix as response for logistic_regression()
#266
Labels
feature
a feature request or enhancement
logistic_regression()
#266
In situations where users need to model an outcome that is a proportion (such as clicks out of impressions, registrations out of visits, etc) a useful approach is to use a generalized linear model with
family = binomial
(i.e. just likeparsnip::logistic_regression()
) but in the formula, instead of a factor, specify the response as a "two-column matrix with the columns giving the numbers of successes and failures", according to the docs.We don't currently support this. This is what it looks like using the underlying
glm()
function, and this is the error we currently get trying to use parsnip:Created on 2020-02-24 by the reprex package (v0.3.0)
The text was updated successfully, but these errors were encountered: