wtd.sd: Weighted standard deviation calculation

View source: R/internal.R

wtd.sdR Documentation

Weighted standard deviation calculation

Description

This function calculates standard deviations with weights and is a counterpart to the built-in weighted.mean function.

Usage

wtd.sd(x, weights)

Arguments

x

A vector of values for which you want the standard deviation

weights

A vector of weights equal in length to x


jtools documentation built on Sept. 11, 2024, 7 p.m.