FitPSpline: Fit Natural cubic spline with data points as knots (P-Spline)

Description Usage Arguments Value

View source: R/PSplineFunctions.R

Description

This will utilise the B-Spline functions in this package to fit a P-Spline. That is, a cubic B-spline with interior and exterior knots defined by each data point.

Usage

1
FitPSpline(x, y, lambda)

Arguments

x

Vector of data points.

y

Vector of observations

lambda

Smoothing parameter.

Value

Named list with the following components:

AlphaEst is a vector of estimated coefficients of the regression model.

YEst is a vector of fitted values.

VarYEst is the dispersion matrix of the fitted value estimates.


nclJoshCowley/PSplinesR documentation built on Nov. 19, 2019, 10:29 a.m.