InternalPerformanceSummaryFunctions | R Documentation |
For binomial and multinomial family models:
Various performance metrics from confusionMatrix
;
AUC (or mAUC) (auc
);
Brier Score (brier
)
For Gaussian/Poisson family models:
Root Mean Square Error (RMSE; rmse
);
Mean Absolute Error (MAE; mae
);
Pearson's correlation r and r^2 between observed and predicted (R, R2);
simple linear calibration intercept and slope (cal_Intercept, cal_Slope).
Brier score, which in this context is the Mean Square Error == RMSE^2;
RMSE and MSE scaled by the S.D. of y (SDScaledRMSE, SDScaledMAE);
Optionally Somer's Dxy can be returned (SomersDxy;
SomersDelta
).
For the Poisson family performance measures above but calculated
from log1p
transformed data are also returned.
For Cox family models:
Harrell's C-index and Dxy using the rcorr.cens
function.
For multivariate Gaussian family models: Runs perf_cont for each outcome.
perf_nomial(object, short = FALSE, somersD = FALSE, pvprevalence = "observed")
perf_cont(object, short = FALSE, somersD = FALSE, pvprevalence = "observed")
perf_cox(object, short = FALSE, somersD = FALSE, pvprevalence = "observed")
perf_mgaussian(
object,
short = FALSE,
somersD = FALSE,
pvprevalence = "observed"
)
object |
a |
short |
(bool) return a core set of performance measures. |
somersD |
(bool) calculate the computationally expensive Somers' D for certain families (gaussian, poisson) |
pvprevalence |
argument for adjustment of PPV/NPV calculation for
binomial or multinomial families. Either "observed" to use the observed
prevalence, or a number |
perf_nomial()
: Used for binomial and multinomial families
perf_cont()
: Used for gaussian and poisson families
perf_cox()
: Used for cox models
perf_mgaussian()
: Used for multivariate gaussian models
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.