powered by
predict.sgpv
S3 method predict for an object of class sgpv
predict
sgpv
# S3 method for sgpv predict(object, newdata, type, ...)
An sgpv objectect
Prediction data set
The type of prediction required. Can take the value of link, response, and terms. Default is response.
link
response
terms
Other predict arguments
Predicted values
# 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