predict.sgpv {ProSGPV}R Documentation

predict.sgpv: Prediction using the fitted model

Description

S3 method predict for an object of class sgpv

Usage

## S3 method for class 'sgpv'
predict(object, newdata, type, ...)

Arguments

object

An sgpv objectect

newdata

Prediction data set

type

The type of prediction required. Can take the value of link, response, and terms. Default is response.

...

Other predict arguments

Value

Predicted values

Examples



# prepare the data
x <- t.housing[, -ncol(t.housing)]
y <- t.housing$V9

# run one-stage algorithm
out.sgpv <- pro.sgpv(x = x, y = y)

predict(out.sgpv)

[Package ProSGPV version 1.0.0 Index]