Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

predict.fastglm

Obtains predictions and optionally estimates standard errors of those predictions from a fitted generalized linear model object.


Description

Obtains predictions and optionally estimates standard errors of those predictions from a fitted generalized linear model object.

Usage

## S3 method for class 'fastglm'
predict(object, newdata = NULL, type = c("link",
  "response"), se.fit = FALSE, dispersion = NULL, ...)

Arguments

object

a fitted object of class inheriting from "fastglm".

newdata

a matrix to be used for prediction

type

the type of prediction required. The default is on the scale of the linear predictors; the alternative "response" is on the scale of the response variable. Thus for a default binomial model the default predictions are of log-odds (probabilities on logit scale) and type = "response" gives the predicted probabilities. The "terms" option returns a matrix giving the fitted values of each term in the model formula on the linear predictor scale.

The value of this argument can be abbreviated.

se.fit

logical switch indicating if standard errors are required.

dispersion

the dispersion of the GLM fit to be assumed in computing the standard errors. If omitted, that returned by summary applied to the object is used.

...

further arguments passed to or from other methods.


fastglm

Fast and Stable Fitting of Generalized Linear Models using 'RcppEigen'

v0.0.1
GPL (>= 2)
Authors
Jared Huling [aut, cre], Douglas Bates [cph], Dirk Eddelbuettel [cph], Romain Francois [cph], Yixuan Qiu [cph]
Initial release

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.