apply_covariates: Returns a list of lehmann_roc objects.

Description Usage Arguments Value Examples

View source: R/roc.R

Description

This function is used when a user wants apply covariate values to a lehmann_roc object. This function returns a list containing n lehmann_roc objects, where n is the number of lists of covariates provided.

Usage

1
apply_covariates(l, covariates, ...)

Arguments

l

A lehmann_roc object.

covariates

A list of covariate values.

...

More lists of covariate values.

Value

A list containing lehmann_roc objects with the covariate values applied. The labels of the list are the values of covariates, separated by comams.

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
## Not run: 
l <- # create lehmann_roc object
l_objects <- apply_covariates(l, list(cov_val_1=1, cov_val_2=2),
list(cov_val_1=2, cov_val_2=2))
l_1 <- l_objects[["1, 2"]]
l_2 <- l_objects[["2, 2"]]
l_1$theta
l_1$partial_auc(0.5)
plot(l_1)

l_2$theta
l_2$partial_auc(0.5)
plot(l_2)

## End(Not run)

Nejiv/Lehmann-ROC documentation built on Oct. 13, 2020, 10:52 a.m.