croc.formula: The formula wrapper for croc.default

Description Usage Arguments Value

View source: R/crocfuncollection.R

Description

This function provides the formula wrapper for croc.default function.

Usage

1
2
## S3 method for class 'formula'
croc(formula, data, model = c("PH", "PrevH"), subset, weights, na.action, ...)

Arguments

formula

a formula object, with the response on the left of a ~ operator, and the terms on the right.

data

a data.frame in which to interpret the variables named in the formula, or in the subset and the weights argument.

model

a character string specifying the model for the conave ROC curve, one of PH, PrevH, PBN, Emprical.

subset

an expression indicating which subset of the rows of data should be used in the fit. All observations are included by default.

weights

a vector of case weights.

Value

an object of class coxph and croc representing the fit.


liffuchen/cROC documentation built on May 14, 2020, 9:08 p.m.