moment: Obtain Moments from a CopRe or SeqRe Result

View source: R/moment.R

momentR Documentation

Obtain Moments from a CopRe or SeqRe Result

Description

Obtain Moments from a CopRe or SeqRe Result

Usage

moment(obj, mom, cntrl = TRUE, grd = NULL)

## S3 method for class 'seqre_result'
moment(obj, mom, cntrl = TRUE, grd = NULL)

## S3 method for class 'grideval_result'
moment(obj, mom, cntrl = TRUE, grd = NULL)

Arguments

obj

A copre_result or seqre_result object.

mom

A numeric scalar indicating the moment to calculate.

cntrl

A logical value indicating whether the moment should be central or not. Defaults to TRUE.

grd

A numeric vector of grid values on which the density function samples in obj should be calculated for trapezoidal integration.

Value

A vector of moment values for each sampled distribution in obj.

Methods (by class)

  • moment(seqre_result): Moment calculation method for seqre_result objects.

  • moment(grideval_result): Moment calculation method for grideval_result objects.


copre documentation built on May 29, 2024, 7:36 a.m.