Learn R Programming

spatsurv (version 2.0)

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)

Value

a basis matrix

Arguments

x

a vector, the data

basis

an object created by the getBbasis function