AUC_Spline_matrix_B: Spline interpolation Method - Matrix of the zero order...

Description Usage Arguments Details Value

View source: R/AUC_Spline_matrix_B.R

Description

\loadmathjax

In the area under the curve calculation using the spline interpolation method, the vector of the second derivative of the outcome of interest \mjseqnY is expressed as \mjseqnA Y^” = B Y + F. This function calculate calculate the matrix B.

Usage

1

Arguments

time

a numerical vector of time points of length m (x-axis coordinates).

Details

The tridiagonal matrix \mjseqnB is defined as (for the "not-a-knot boundary conditions): The \mjseqnjth line of the matrix, \mjseqnB_[j,\ :] is given by \mjsdeqnB_[j,\ :] = \left(0, \cdots, 0\right) \text if j=1 \mjsdeqnB_[j,\ :] = \left(0, \cdots, 0\right) \text if j=m \mjsdeqnB_[j,\ :] = \left(0_1, \cdots, 0_j-2, \frac1h_j,-\left[\frac1h_j + \frac1h_j+1\right], \frac1h_j+1, 0_j+2, \cdots, 0_m \right) \text otherwise

Value

a tridiagonal matrix corresponding to the weights of the variable of interest in the spline interpolation method. In this version, the matrix is build considering the "not-a-knot" spline boundary conditions.


marie-alexandre/AUCtest documentation built on Jan. 1, 2021, 8:31 a.m.