Skip to contents

Get distribution function cdf or pdf name

Usage

pcd_dist_name(name, type = c("delay", "primary"))

Arguments

name

String. Distribution name or alias

type

String. "delay" or "primary" corresponding to the type of distribution to use as the look up. If delay then pcd_distributions() is used, if primary then pcd_primary_distributions() is used.

Value

String distribution function name or NA if no base R implementation

See also

Utility functions for working with distributions add_name_attribute(), pcd_distributions, pcd_primary_distributions

Examples

pcd_dist_name("lnorm")
#> [1] "plnorm"
pcd_dist_name("lognormal")
#> [1] "plnorm"
pcd_dist_name("gamma")
#> [1] "pgamma"
pcd_dist_name("weibull")
#> [1] "pweibull"
pcd_dist_name("exp")
#> [1] "pexp"
pcd_dist_name("unif", type = "primary")
#> [1] "dunif"
pcd_dist_name("expgrowth", type = "primary")
#> [1] "dexpgrowth"