Learn R Programming

rmetalog (version 1.0.3)

dmetalog: Generate density values with quantiles from a metalog object. This is done through a newtons method approximation.

Description

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

Usage

dmetalog(m, q, term = 3)

Arguments

m

metalog object created from metalog()

q

y vector of quantiles

term

which metalog distribution to sample from

Value

A numeric vector of probabilities corresponding to the q quantile vector

Examples

Run this code
# NOT RUN {
# 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 <- dmetalog(myMetalog,q=c(3,10,25),term = 9)
# }

Run the code above in your browser using DataLab