grid_inner {pintervals} | R Documentation |
Inner function for grid search
Description
Inner function for grid search
Usage
grid_inner(
hyp_ncs,
y_hat,
ncs,
pos_vals,
alpha,
return_min_q = FALSE,
weights = NULL
)
Arguments
hyp_ncs |
vector of hypothetical non-conformity scores |
y_hat |
predicted value |
ncs |
vector of non-conformity scores |
pos_vals |
vector of possible values for the lower and upper bounds of the prediction interval |
alpha |
confidence level |
return_min_q |
logical. If TRUE, the function will return the minimum quantile of the nonconformity scores for each predicted value |
weights |
vector of weights for the weighted conformal prediction method |
Value
a numeric vector with the predicted value and the lower and upper bounds of the prediction interval
[Package pintervals version 0.7.7 Index]