getBasisMat {splinetree} | R Documentation |
Using the user-specified parameters or the default parameters, computes the basis matrix that will be used for building the tree.
getBasisMat(yvar, tvar, idvar, data, knots = NULL, df, degree, intercept,
gridPoints, nGrid = 7)
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. |
The basis matrix to be used for the tree building process