predict.gspcrout {gspcr}R Documentation

Predict GSPCR model dependent variable scores

Description

Predicts dependent variable values based on (new) predictor variables values.

Usage

## S3 method for class 'gspcrout'
predict(object, newdata = NULL, ...)

Arguments

object

An object of class gspcr.

newdata

optionally, a data frame in which to look for variables with which to predict. If omitted, the fitted linear predictors are used.

...

further arguments passed to or from other methods.

Value

Vector of prediction in "response" format for numerical data and probability of class membership for categorical data

Author(s)

Edoardo Costantini, 2023


[Package gspcr version 0.9.5 Index]