qmetalog: Generate quantiles with a probability from a metalog object

Description Usage Arguments Value Examples

View source: R/class_method.R

Description

Generate quantiles with a probability from a metalog object

Usage

1
qmetalog(m, y, term = 3)

Arguments

m

metalog object created from metalog()

y

vector of probabilities

term

which metalog distribution to sample from

Value

A numeric vector of quantiles corresponding to the y probability vector

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
# 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 <- qmetalog(myMetalog,y=c(0.25,0.5,0.7),term = 9)

## End(Not run)

isaacfab/rmetalog documentation built on Jan. 31, 2021, 10:29 p.m.