Learn R Programming

MCMCglmm (version 1.06)

kunif: Central Moments of a Uniform Distribution

Description

Returns the central moments of a uniform distribution

Usage

kunif(min, max, k)

Arguments

min, max
lower and upper limits of the distribution. Must be finite.
k
k central moment, must be even

Value

  • kth central moment

See Also

dunif

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