library(CoSMoS)
## Normal Distribution
moments('norm', list(mean = 2, sd = 1))
## Pareto type II
scale <- 1
shape <- .2
moments(dist = 'paretoII',
distarg = list(shape = shape,
scale = scale))
Run the code above in your browser using DataLab