Learn R Programming

caretEnsemble (version 1.0.0)

wtd.sd: Calculate a weighted standard deviation

Description

Used to weight deviations among ensembled model preditions

Usage

wtd.sd(x, weights = NULL, normwt = FALSE, na.rm = FALSE)

Arguments

x
a vector of numerics
weights
a vector of weights equal to length of x
normwt
a logical indicating whether the weights should be normalized to 1
na.rm
a logical indicating how to handle missing values, default = FALSE