weighted.moments {acid}R Documentation

Moments of a Random Variable

Description

This functions calculates the first three moments as well as mean, standard deviation and skewness for a vector of observations with corresponding weights.

Usage

weighted.moments(x, w8 = NULL)

Arguments

x

a vector of observations.

w8

a vector of weights.

Value

fm

returns the first moment.

weighted.mean

returns the mean.

sm

returns the second moment.

weighted.sd

returns the uncorrected (population) standard deviation.

wtd.sd

returns the sample-size corrected standard deviation estimate.

tm

returns the third moment.

w.skew.SAS

returns the skewness estimate as implemented in SAS.

w.skew.Stata

returns the skewness estimate as implemented in Stata.

Author(s)

Alexander Sohn

See Also

wtd.var


[Package acid version 1.1 Index]