Skip to contents

Wrapper around fit_misclass_mle() that returns output in the same format as other estimators (ppi_point_and_ci(), rg_point_and_ci(), etc.).

Usage

mle_point_and_ci(Y_cal, Yhat_cal, Yhat_test, alpha = 0.1)

Arguments

Y_cal

Vector of human labels on the calibration set (0/1).

Yhat_cal

Vector of surrogate predictions on the calibration set (0/1).

Yhat_test

Vector of surrogate predictions on the test set (0/1).

alpha

Miscoverage level for the confidence interval.

Value

A list containing:

theta

Point estimate of the prevalence.

var

Estimated variance of theta (from observed information).

ci_lower

Lower bound of the confidence interval.

ci_upper

Upper bound of the confidence interval.

q0_hat

Estimated specificity.

q1_hat

Estimated sensitivity.

full_fit

The full output from fit_misclass_mle for advanced use.