Learn R Programming

Sshaped (version 1.1)

predict.sshaped: Predict method for a sshaped fit

Description

This function obtains predictions at new design points from a fitted sshaped object.

Usage

# S3 method for sshaped
predict(object, xnew, ...)

Value

A numeric vector containing predictions at new data points.

Arguments

object

A fitted sshaped object produced by sshapedreg or cvxreg.

xnew

An optional numeric vector specifying the location at which prediction is required. Its values can lie outside the range of the original design points. This argument can be missing, in which case predictions are made at the same values of the covariates used to compute the object.

...

Other arguments passed to predict.

See Also

sshapedreg, cvxreg

Examples

Run this code
## See examples for the functions sshapedreg and cvxreg.

Run the code above in your browser using DataLab