cinqnum: cinqnum

View source: R/methods.R

cinqnumR Documentation

cinqnum

Description

Produce 5 numbers of the distribution (mean_, sd_, lci_, uci_, median_).

Usage

cinqnum(x, ...)

## S3 method for class 'DISTRIBUTION'
cinqnum(x, n, ...)

## S3 method for class ''NA''
cinqnum(x, n, ...)

## S3 method for class 'DIRAC'
cinqnum(x, n, ...)

Arguments

x

an object of class DISTRIBUTION

...

further parameters

n

number of drawns

Details

Uses the stored seed to have the same sequence always and produce the same numbers This is an internal function for the summary function

Value

a vector with the mean, sd, lci, uci and median values

Methods (by class)

  • cinqnum(DISTRIBUTION): Generic method for a DISTRIBUTION

  • cinqnum(`NA`): Generic method for optimized for a NA distribution

  • cinqnum(DIRAC): Generic method optimized for a DIRAC distribution

Author(s)

John J. Aponte


convdistr documentation built on May 29, 2024, 11:49 a.m.