predict.glm.prmdt: predict.glm.prmdt

View source: R/predict.R

predict.glm.prmdtR Documentation

predict.glm.prmdt

Description

Return prediction for a glm model.

Usage

## S3 method for class 'glm.prmdt'
predict(
  object,
  newdata,
  type = "class",
  se.fit = FALSE,
  dispersion = NULL,
  terms = NULL,
  na.action = na.pass,
  ...
)

Arguments

object

a glm model object for which prediction is desired.

newdata

an optional data frame in which to look for variables with which to predict.

type

type of prediction 'prob' or 'class' (default).

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.

terms

with type = "terms" by default all terms are returned. A character vector specifies which terms are to be returned.

na.action

function determining what should be done with missing values in newdata. The default is to predict NA.

...

additional arguments affecting the predictions produced.

Value

a vector or matrix of predictions for glm model.


PROMiDAT/trainR documentation built on Nov. 13, 2023, 3:20 a.m.