Learn R Programming

ProSGPV (version 1.0.0)

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

Description

S3 method predict for an object of class sgpv

Usage

# S3 method for 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

Run this code
# NOT RUN {

# 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)
# }

Run the code above in your browser using DataLab