wtd.skewness: Calculates Skewness of Numeric Variable with Option to Weight...

View source: R/helper.functions.r

wtd.skewnessR 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)
   

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

Related to wtd.skewness in RCPA3...