Learn R Programming

convdistr (version 1.6.1)

cinqnum: cinqnum

Description

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

Usage

cinqnum(x, ...)

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

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

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

Value

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

Arguments

x

an object of class DISTRIBUTION

...

further parameters

n

number of drawns

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

John J. Aponte

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