Learn R Programming

parTimeROC (version 0.2.0)

timeroc_obj: timeroc_obj

Description

Function to initialized time-dependent ROC object.

Usage

timeroc_obj(
  dist,
  params.x = NA,
  params.t = NA,
  copula = NA,
  params.copula = NA,
  params.ph = NA
)

Value

A 'TimeROC' object.

Arguments

dist

A string emphasizing the distribution assumption for biomarker-time-model.

params.x

Vector of biomarker parameter.

params.t

Vector of time-to-event parameter.

copula

A string emphasizing on the copula to be used.

params.copula

An integer for copula parameter.

params.ph

An integer for association parameter.

Examples

Run this code
## Copula model
test <- timeroc_obj(dist = 'gompertz-gompertz-copula', copula = "gumbel90")

## PH model
test <- timeroc_obj(dist = 'weibull-gompertz-PH')

Run the code above in your browser using DataLab