predict.shaped: Predict method for a 'sshaped' fit

predict.sshapedR 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.

Sshaped documentation built on Oct. 13, 2022, 5:05 p.m.