predict.sgpv: 'predict.sgpv': Prediction using the fitted model

Description Usage Arguments Value Examples

View source: R/pro.sgpv.R

Description

S3 method predict for an object of class sgpv

Usage

1
2
## 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

1
2
3
4
5
6
7
8
# 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)

zuoyi93/ProSGPV documentation built on Aug. 31, 2021, 1:22 a.m.