wtd.skewness {RCPA3} | R Documentation |
Calculates Skewness of Numeric Variable with Option to Weight Observations
Description
Calculates Skewness of Numeric Variable with Option to Weight Observations
Usage
wtd.skewness(x, w, data, digits = 3)
Arguments
x |
Variable (must be a numeric vector) |
w |
(Optional) Weights variable |
data |
(Optional) Dataset |
digits |
(Optional) Number of digits after decimal point (default: 3) |
Value
Returns the skewness of the variable, a numeric value.
Examples
library(RCPA3)
wtd.skewness(x=nes$ft.socialists, w=nes$wt)
wtd.skewness(x=nes$ft.socialists)
[Package RCPA3 version 1.2.1 Index]