predict.BranchGLMVS: Predict Method for BranchGLMVS Objects

View source: R/VariableSelection.R

predict.BranchGLMVSR Documentation

Predict Method for BranchGLMVS Objects

Description

Gets predictions from a BranchGLMVS object.

Usage

## S3 method for class 'BranchGLMVS'
predict(object, newdata = NULL, type = "response", which = 1, ...)

Arguments

object

a BranchGLMVS object.

newdata

a dataframe, if not specified then the data the model was fit on is used.

type

one of "linpreds" or "response", if not specified then "response" is used.

which

which model to get predictions from, the default is the best model.

...

further arguments passed to fit.BranchGLMVS.

Details

linpreds corresponds to the linear predictors and response is on the scale of the response variable. Offset variables are ignored for predictions on new data.

Value

A numeric vector of predictions.


BranchGLM documentation built on Aug. 31, 2023, 5:17 p.m.