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.