Learn R Programming

caretEnsemble (version 4.0.1)

wtd.sd: Calculate a weighted standard deviation

Description

Used to weight deviations among ensembled model predictions

Usage

wtd.sd(x, w, na.rm = FALSE)

Arguments

x

a numeric vector

w

a vector of weights equal to length of x

na.rm

a logical indicating how to handle missing values, default = TRUE