Learn R Programming

spatsurv (version 1.7)

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