weighted.moments {acid} | R Documentation |
This functions calculates the first three moments as well as mean, standard deviation and skewness for a vector of observations with corresponding weights.
weighted.moments(x, w8 = NULL)
x |
a vector of observations. |
w8 |
a vector of weights. |
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. |
Alexander Sohn