getBasisMat: Get the basis matrix to be used for this spline tree

Description Usage Arguments Value

View source: R/splineTree.R

Description

Using the user-specified parameters or the default parameters, computes the basis matrix that will be used for building the tree.

Usage

1
2
getBasisMat(yvar, tvar, idvar, data, knots = NULL, df, degree, intercept,
  gridPoints, nGrid = 7)

Arguments

yvar

Name of response variable (string)

tvar

Name of time variable (string)

idvar

Name of ID variable (string)

data

Full dataset

knots

Knots argument specified by user. Specifies location of INTERNAL knots.

df

Degrees of freedom argument specified by user

degree

The degree of the spline polynomial

intercept

Whether or not to use an intercept

gridPoints

Optional. A vector of numbers that will be used as the grid on which to evaluate the projection sum of squares. Should fall roughly within the range of the time variable.

nGrid

Number of grid points to evaluate split function at.

Value

The basis matrix to be used for the tree building process


splinetree documentation built on July 18, 2019, 9:08 a.m.