Learn R Programming

spatsurv (version 0.9-11)

Bspline.construct: Bspline.construct function

Description

A function to construct a B-spline basis matrix for given data and basis coefficients. Used in evaluating the baseline hazard.

Usage

Bspline.construct(x, basis)

Arguments

x
a vector, the data
basis
an object created by the getBbasis function

Value

  • a basis matrix