rmetalog {rmetalog}R Documentation

Create random samples from an metalog distribution object

Description

The rmetalog package implements the metalog distribution in R

Usage

rmetalog(m, n = 1, term = 3)

Arguments

m

metalog object created from metalog()

n

number of observations (default is 1)

term

which metalog distribution to sample from

Value

A numeric vector of n random samples from a selected distribution

Examples

# Load example data
## Not run: 
data("fishSize")

# Create a bounded metalog object
myMetalog <- metalog(fishSize$FishSize,
                     bounds=c(0, 60),
                     boundedness = 'b',
                     term_limit = 9,
                     term_lower_bound = 9)

s <- rmetalog(myMetalog, n=1000, term = 9)
hist(s)

## End(Not run)

[Package rmetalog version 1.0.3 Index]