Description Usage Arguments Details Value Examples
In general, the function passed to sl_control$cv_risk
should expect a list
of outcomes and predictions in validation folds. The function should return a
list with names cv_measure, ci_low, ci_high, and p_value. The output of this function
is returned irrespective of the names of the list; however, the names are
necessary for print
methods to work properly.
1 | cv_risk_sl_r2(input, sl_control)
|
input |
List where each entry corresponds to a validation fold. Each entry is a list
with entries: Y (univariate outcome for this validation fold), pred (matrix of predictions
from |
sl_control |
List of super learner control options. |
In this case, the confidence intervals are computed on the scale of log(MSE/Var) and
back-transformed to the R-squared scale. Here, MSE is the cross-validated mean
squared-error of the super learner for predicting a univariate outcome (one of the
components of Y
) and Var is the cross-validated marginal mean of this outcome. The p-value
is for the one-sided hypothesis test that cross-validated R-squared equals zero against
the alternative that it is greater than zero.
A list with named entries cv_measure, ci_low, ci_high, and p_value. The list will
be returned by max_assoc
irrespective of the named entries; however, the print
methods will only work if the function returns the above names.
1 2 3 4 5 6 7 8 9 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.