- 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.
- covariate
The name(s) of covariate(s), i.e. other variables associated with either test or disease status.
Specify as name vector, e.g. c("X1", "X2") for two or more variables. The variables must be in formats acceptable to GLM.
- saturated_model
Set as TRUE to obtain the original Begg and Greenes' (1983) when all possible interactions are included.
- option
1 = IPW weight, 2 = W_h weight, described in Arifin (2023), modified weight of Krautenbacher (2017).
The default is option = 2. For small weights, option = 2 is more stable (Arifin, 2023).
- ci
View confidence interval (CI). The default is FALSE.
- ci_level
Set the CI width. The default is 0.95 i.e. 95% CI.
- ci_type
Set confidence interval (CI) type. Acceptable types are "norm", "basic", "perc", and "bca",
for bootstrapped CI.
- b
The number of bootstrap samples, b.
- seednum
Set the seed number for the bootstrapped CI. The default is not set, so it depends on the user
to set it outside or inside the function.
- return_data
Return data for the bootstrapped samples.
- return_detail
Return accuracy measures for each of the bootstrapped samples.
- description
Print the name of this analysis. The default is TRUE. This can be turned off for repeated analysis, for example in bootstrapped results.