predict.sshaped {Sshaped} | R Documentation |
Predict method for a sshaped
fit
Description
This function obtains predictions at new design points from a fitted sshaped
object.
Usage
## S3 method for class 'sshaped'
predict(object, xnew, ...)
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 .
|
Value
A numeric vector containing predictions at new data points.
Author(s)
See Also
sshapedreg
, cvxreg
Examples
## See examples for the functions sshapedreg and cvxreg.
[Package
Sshaped version 1.1
Index]