Learn R Programming

poliscidata (version 1.2.0)

wtd.sd: Find Standard Deviation of Variable

Description

Takes in variable and calculates standard deviation, works with sampling weights

Usage

wtd.sd(x, weights = NULL)

Arguments

x

A variable (must be numeric)

weights

Sampling weights of variable (optional)

Value

Returns the standard deviation of the variable

Details

Makes use of the freq function, part of the descr package