predictSpline: A custom spline prediction function, extending linearly with...

Description Usage Arguments Value

View source: R/predictSpline.R

Description

A custom spline prediction function, extending linearly with a slope such that prediction never drops below first bisectant

Usage

1
2
predictSpline(fit, newdata, linX, coefsQuad, deriv = 0L, meanVarFit,
  minFit, new.knots, degree)

Arguments

fit

The existing spline fit

newdata

points in which the spline needs to be evaluated

linX

The x at which the fit becomes linear and intersects the diagonal line

coefsQuad

parameters of a quadratic fit

deriv

An integer. Which derivative is required?

meanVarFit

A character string, indicating which type of mean variance fit is being used

minFit

The lower bound of the cubic fit

new.knots

The knots at which the spline is to be evaluated

degree

The degree of the polynomial fit

Value

The evaluation of the spline, i.e. the predicted variance


combi documentation built on Nov. 8, 2020, 5:34 p.m.

Related to predictSpline in combi...