Description Usage Arguments Examples
This function returns order-th weighted sample moment.
1 | ry_momentProb(x, p, order = 1, center = FALSE)
|
x |
is a numeric vector. |
p |
is a numeric vector of weight of x elements |
order |
is order of moment. |
center |
is logical; when TRUE, moment is around mean and otherwise zero. |
1 2 3 4 5 | n <- 10
x <- runif(n)
p <- runif(n)
p <- p/sum(p)
out <- ry_momentProb(x,p,oder=2,center=TRUE)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.