powered by
Calculates Skewness of Numeric Variable with Option to Weight Observations
wtd.skewness(x, w, data, digits = 3)
Returns the skewness of the variable, a numeric value.
Variable (must be a numeric vector)
(Optional) Weights variable
(Optional) Dataset
(Optional) Number of digits after decimal point (default: 3)
library(RCPA3) # \donttest{ wtd.skewness(x=nes$ft.socialists, w=nes$wt) wtd.skewness(x=nes$ft.socialists) # }
Run the code above in your browser using DataLab