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

View source: R/helper.functions.r

wtd.kurtosisR Documentation

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)

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)

Value

Returns the kurtosis of the variable, a numeric value.

Examples

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

RCPA3 documentation built on May 29, 2024, 12:19 p.m.

Related to wtd.kurtosis in RCPA3...