View source: R/helper.functions.r
wtd.kurtosis | R Documentation |
Generates Kurtosis Statistic with Option to Weight Observations
wtd.kurtosis(x, w, data, digits = 3)
x |
Variable (a numeric vector) |
w |
(Optional) Weights variable |
data |
(Optional) Dataset, can be used to abbreviate x to variable name |
digits |
(Optional) Number of digits after decimal point (default: 3) |
Returns the kurtosis of the variable, a numeric value.
library(RCPA3)
wtd.kurtosis(x=nes$age, w=nes$wt)
wtd.kurtosis(x=nes$age)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.