Learn R Programming

ecd (version 0.9.2.4)

ecld.moment: The moments and MGF of ecld

Description

Compute the moments and MGF of ecld for mu=0 (centered), via analytical result whenever is available. SGED is supported.

Usage

ecld.moment(object, order, ignore.mu = TRUE)

ecld.mgf(object, t = 1)

ecld.mgf_by_sum(object, t = 1)

ecld.mgf_quartic(object, t = 1)

Arguments

object

an object of ecd class

order

numeric, order of the moment to be computed

ignore.mu

logical, disgard mu; otherwise, stop if mu is not zero.

t

numeric, for MGF

Value

numeric

Examples

Run this code
# NOT RUN {
ld <- ecld(lambda=3, sigma=0.01*ecd.mp1)
ecld.moment(ld, 2)
ecld.mgf(ld)
# }

Run the code above in your browser using DataLab