extract_event_data {TimeDepFrail}R Documentation

Extracting variables for Posterior Frailty Estimates computation

Description

Function for extracting from the dataset quantities necessary to the evaluation of the posterior frailty estimates.

Usage

extract_event_data(dataset, time_to_event, centre, time_axis, phi, betar)

Arguments

dataset

Dataset containing the covariates/regressors. Their numerosity is indicated with R.

time_to_event

Time-instant in the follow-up in which an individual fails or faces the event. If an individual does not face the event, the time-instant assumes a default value.

centre

Categorical vector indicating the group/cluster membership. The number of distinct group is indicated with N.

time_axis

Numerical vector of the temporal domain. Its length is (L+1), where L indicates the number of intervals of the time-domain.

phi

Numerical vector of length L, of estimated baseline log-hazard.

betar

Numerical vector of length R, of estimated regressors.

Details

The S3 class obejct 'EventData' contains the variables necessary for the estimate of the posterior frailty and that can be extracted or computed starting from the dataset.

Value

S3 object of class 'EventData', composed of six elements. See details.


[Package TimeDepFrail version 0.0.0.9 Index]