weighted.std {Rrepest}R Documentation

Weighted Standard Deviation

Description

Calculate the standard deviation of a numeric vector

Usage

weighted.std(x, w, na.rm = TRUE)

Arguments

x

(numeric vector) variable to analyze

w

(numeric vector) vector of weights

na.rm

(bool) if TRUE remove missing values.

Value

Scalar with Variance or Standard Deviation

Examples

data(df_talis18)

weighted.std(df_talis18$TT3G02, df_talis18$TRWGT1)

[Package Rrepest version 1.3.0 Index]