Learn R Programming

RCPA3 (version 1.3.1)

wtd.skewness: 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)

Value

Returns the skewness of the variable, a numeric value.

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)

Examples

Run this code
   library(RCPA3)
   
   # \donttest{
   wtd.skewness(x=nes$ft.socialists, w=nes$wt)
   wtd.skewness(x=nes$ft.socialists)
   # }

Run the code above in your browser using DataLab