loglik_p: Observed-data log-likelihood for B-spline coefficients

Description Usage Arguments Value

View source: R/loglik_p.R

Description

Observed-data log-likelihood for B-spline coefficients

Usage

1
loglik_p(bspline_coeff, time, event, bspline, data, try_event_times = NULL)

Arguments

bspline_coeff

Matrix of B-spline coefficients returned from sieveSurv().

time

Column name for follow-up time.

event

Column name for event indicators.

bspline

Column names for B-spline basis.

data

Dataframe or matrix containing (at least) named columns time, event, covar, and bspline.

try_event_times

(Optional) Vector or dataframe of observed values of time (for events) to be used to create the complete dataset. If NULL (DEFAULT), then the unique event times from data will be used.

Value

Scalar


sarahlotspeich/sieveSurv documentation built on Feb. 14, 2022, 5:10 a.m.