pmetalog: Generate probabilities with quantiles from a metalog object....

Description Usage Arguments Value Examples

View source: R/class_method.R

Description

Generate probabilities with quantiles from a metalog object. This is done through a newtons method approximation.

Usage

1
pmetalog(m, q, term = 3)

Arguments

m

metalog object created from metalog()

q

vector of quantiles

term

which metalog distribution to sample from

Value

A numeric vector of probabilities corresponding to the q quantile 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 <- pmetalog(myMetalog,q=c(3,10,25),term = 9)

## End(Not run)

isaacfab/RMetalog documentation built on Jan. 26, 2021, 6:44 a.m.