Generates Kurtosis Statistic with Option to Weight Observations
wtd.kurtosis(x, w, data, digits = 3)
Returns the kurtosis of the variable, a numeric value.
Variable (a numeric vector)
(Optional) Weights variable
(Optional) Dataset, can be used to abbreviate x to variable name
(Optional) Number of digits after decimal point (default: 3)
library(RCPA3)
wtd.kurtosis(x=nes$age, w=nes$wt)
wtd.kurtosis(x=nes$age)
Run the code above in your browser using DataLab