splinek {asreml}R Documentation

Spline knot points.

Description

Return the spline knot points generated via the spl() model function.

Usage

splinek(x, k = 0, predict.points = NULL)

Arguments

x

A numeric vector.

k

The number of equally spaced knot points for a cubic smoothing spline. If zero (the default) or omitted, k is set to asreml.options()$knots, in which case the number of knot points used will be min(unique(x), asreml.options()$knots).

predict.points

An optional vector of points to be included in the design matrix for prediction.

Value

A list including the following components:

knotpoints

The knot points generated by ASReml.

zknots

The spline design matrix at the knot points.


[Package asreml version 4.1.0.106 Index]