Learn R Programming

simsem (version 0.2-8)

centralMoment: Calculate central moments of a variable

Description

Calculate central moments of a variable

Usage

centralMoment(x, ord, weight = NULL)

Arguments

x
A vector of a variable
ord
The order of the moment (the maximum is 4).
weight
A vector of weights of each case

Value

  • The central moment value

Examples

Run this code
# This function is not public.

# centralMoment(1:5, 2)

Run the code above in your browser using DataLab