Learn R Programming

vpc (version 1.2.4)

pred_correction_core: Core prediction correction function

Description

Perform pred-correction for predictions that were non-zero and were not missing observation. The latter can happen e.g. when censored data is set to NA in `format_vpc_input_data()`.

Usage

pred_correction_core(data, pred_col, pred_corr_lower_bnd)

Value

data.frame

Arguments

data

dataset, either `sim` or `obs` data.frame

pred_col

cols$obs$pred

pred_corr_lower_bnd

lower bound for the prediction-correction