spline: spline objects

Description Usage Arguments Value

Description

create and transform covariates to isplines or bsplines from use in bbgdm.

Usage

1
2
3
4
5
6
ispline(x, spline.knots = 2, knots = NULL, spline.degree = 3)

spline.trans(x, spline_type = "ispline", spline_df = 2, spline_knots = 1)

spline_trans_for_pred(x, attrib = NULL, splineInterval = NULL,
  splineDegree = NULL)

Arguments

x

data.frame of covariates to use as predictors in bbgdm.

spline.knots

number knots.

knots

NULL degrees of freedom; one can specify df rather than knots. Default = 3.

spline.degree

degrees of freedom for ispline.

spline_type

If "ispline" calculates bs spline from spline package. If "bspline" calculates ispline.

spline_df

degrees of freedom; one can specify df rather than knots. Default = 3.

spline_knots

The internal breakpoints that define the spline. Default = NULL for bs spline and 1 for ispline.

attrib

Spline parameters from model.

splineInterval

NULL

splineDegree

NULL

Value

A matrix of dimension c(length(x), df), where df was supplied.

A matrix of dimension c(length(x), df), where df was supplied.

I-Spline predictions


skiptoniam/bbgdm documentation built on May 30, 2019, 1:05 a.m.