acc_cca: Complete Case Analysis, CCA

View source: R/PVBcorrect_functions.R

acc_ccaR Documentation

Complete Case Analysis, CCA

Description

Perform Complete Case Analysis, CCA, used for complete data and multiple imputation, MI.

Usage

acc_cca(data, test, disease, ci = FALSE, ci_level = 0.95, description = TRUE)

Arguments

data

A data frame, with at least "Test" and "Disease" variables.

test

The "Test" variable name, i.e. the test result. The variable must be in binary; positive = 1, negative = 0 format.

disease

The "Disease" variable name, i.e. the true disease status. The variable must be in binary; positive = 1, negative = 0 format.

ci

View confidence interval (CI). The default is FALSE.

ci_level

Set the CI width. The default is 0.95 i.e. 95% CI.

description

Print the name of this analysis. The default is TRUE. This can be turned off for repeated analysis, for example in bootstrapped results.

Value

A list object containing:

acc_results

The accuracy results.

Examples

acc_cca(data = cad_pvb, test = "T", disease = "D")
acc_cca(data = cad_pvb, test = "T", disease = "D", ci = TRUE)

wnarifin/PVBcorrect documentation built on May 12, 2024, 4:13 p.m.