pdist: The general distribution function

Description Usage Arguments Value Examples

View source: R/utils.R

Description

The general distribution function

Usage

1
pdist(dist, q, arg_list, lookup_verbose = F, ...)

Arguments

dist

character string, specification of the distribution of interest using the abbreviations from distributions

q

numeric vector of quantiles

arg_list

list, alternative to directly using the names of the arguments for the distribution of choice, the user can provide a list with those arguments enclosed. This is useful for when multiple distributions need to be drawn from.

lookup_verbose

logical, whether to print the abbreviated name found in the dist_lookup_table

...

arguments specific to the distribution of interest (e.g. the "binom" distribution requires arguments for size and prob)

Value

a numeric vector representing the cumulative distribution function for the distribution of interest

Examples

1
2
## use curve and pdist to visualize the cumulative distribution for a function
curve(pdist("norm", x, mean=0, sd=1), from=-5, to=5)

salauer/gdist documentation built on Oct. 4, 2020, 11:09 p.m.