R: Central Moments of a Uniform Distribution

kunif {MCMCglmm} | R Documentation

## 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

### Author(s)

Jarrod Hadfield j.hadfield@ed.ac.uk

### See Also

`dunif`

### Examples

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

[Package MCMCglmm version 2.30 Index]