Learn R Programming

MCMCglmm (version 2.36)

kunif: Central Moments of a Uniform Distribution

Description

Returns the central moments of a uniform distribution

Usage

kunif(min, max, k)

Value

kth central moment

Arguments

min, max

lower and upper limits of the distribution. Must be finite.

k

k central moment, must be even

Author

Jarrod Hadfield j.hadfield@ed.ac.uk

See Also

Examples

Run this code
kunif(-1,1,4)
y<-runif(1000,-1,1)
mean((y-mean(y))^4)

Run the code above in your browser using DataLab