mtrunc: Moments of truncated random variables

Description Usage Arguments See Also Examples

Description

This function computes the raw moments of a truncated random variable.

Usage

1
mtrunc(order, spec, a = -Inf, b = Inf, ...)

Arguments

order

numeric vector giving the order of the moments

spec

a character value that specifies the underlying probability distribution

a

a numeric value for the lower bound of the random variable

b

a numeric value for the upper bound of the random variable

...

other arguments are passed to the corresponding moment function

See Also

dtrunc for the probability distribution of a truncated variable.

Examples

1
2
mtrunc(1:6, spec = "norm")
mtrunc(1:6, spec = "norm", b = 0)

CharlotteJana/momcalc documentation built on Oct. 17, 2019, 7:21 a.m.