Learn R Programming

mariposa (version 0.7.3)

predict.logistic_regression: Predict from a logistic_regression model

Description

For ungrouped results, dispatches to stats::predict.glm (the result inherits from "glm"). For grouped results, raises an informative error pointing at object$groups.

Usage

# S3 method for logistic_regression
predict(object, ...)

Value

A numeric vector of predictions on the scale requested via type (link scale by default), as returned by stats::predict.glm.

Arguments

object

A logistic_regression result.

...

Passed to stats::predict.glm.