50% off | Unlimited Data & AI Learning
Get 50% off unlimited learning

RCPA3 (version 1.3.1)

wtd.kurtosis: Generates Kurtosis Statistic with Option to Weight Observations

Description

Generates Kurtosis Statistic with Option to Weight Observations

Usage

wtd.kurtosis(x, w, data, digits = 3)

Value

Returns the kurtosis of the variable, a numeric value.

Arguments

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)

Examples

Run this code
   library(RCPA3)
   
   wtd.kurtosis(x=nes$age, w=nes$wt)
   wtd.kurtosis(x=nes$age)

Run the code above in your browser using DataLab