predict.rcs: Evaluate a Restricted Cubic Splines Basis

Description Usage Arguments Details Value Author(s) See Also

View source: R/auxiliar_functions.r

Description

Evaluate a predefined restricted cubic spline basis at given values.

Usage

1
2
  ## S3 method for class 'rcs'
predict(object, new_x, ...)

Arguments

object

The result of a call to rcs.

new_x

The x values at which evaluations are required.

...

Additional arguments.

Details

The base matrix columns are scaled according to the supplied basis in object.

Value

Returns the basis matrix for the restricted cubic spline at the new_x values

Author(s)

Fernando Massa, fmassa@iesta.edu.uy

See Also

rcs


nando11235813/raschreg documentation built on Oct. 2, 2021, 3:11 p.m.