moment: Moments of a probability distribution

Description Usage Arguments Value Author(s) Examples

View source: R/moment.r

Description

Some functions of useful moments of a probability distribution (raw, incomplete, standardized, kurtosi, etc).

Usage

1
 moment(psi, pdf, par, lower=-Inf,upper=Inf) 

Arguments

psi

A x-only param function

pdf

Function of the probability distribution which its first param is the parameters of the pdf and its second param is the x (random variable).

par

pdf's parameters (a vector of)

lower

Lower bound of pdf.

psi

Upper bound of pdf.

Value

value

The value of the momentum.

Author(s)

Renan L. Fernandes

Examples

1
2
3
4
5
6
7
8
##---- Should be DIRECTLY executable !! ----
##-- ==>  Define data, use random,
##--	or do  help(data=index)  for the standard data sets.

## The function is currently defined as
function (x)
{
  }

renanlf/distrstats documentation built on Dec. 22, 2021, 2:59 p.m.