View source: R/helper.functions.r
wtd.skewness | R Documentation |
Calculates Skewness of Numeric Variable with Option to Weight Observations
wtd.skewness(x, w, data, digits = 3)
x |
Variable (must be a numeric vector) |
w |
(Optional) Weights variable |
data |
(Optional) Dataset |
digits |
(Optional) Number of digits after decimal point (default: 3) |
Returns the skewness of the variable, a numeric value.
library(RCPA3)
wtd.skewness(x=nes$ft.socialists, w=nes$wt)
wtd.skewness(x=nes$ft.socialists)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.