Skip to contents

Model weights from a vector of criteria

Usage

aic_weights(aic)

rmse_weights(rmse)

Arguments

aic

numeric vector of AIC values, one per candidate model.

rmse

numeric vector of RMSE values, one per candidate model.

Value

a numeric vector of weights summing to one.

Examples

aic_weights(c(246.0, 248.8, 251.2))
#> [1] 0.75707646 0.18669276 0.05623078
rmse_weights(c(1.2, 1.5, 2.0))
#> [1] 0.50 0.32 0.18