distfuncs: Get distribution functions

View source: R/norta.R

distfuncsR Documentation

Get distribution functions

Description

Get distribution functions

Usage

distfuncs(dist = "norm")

Arguments

dist

The target distribution function (e.g., norm, binom, gamma, truncnorm, likert). If the distribution isn't definited in the packages stats, truncnorm, or faux, use the format "package::dist".

Value

a list with the r and q functions

Examples

qfunc <- distfuncs("norm")$q # returns qnorm
p <- seq(0.1, 0.9, .1)
qfunc(p) == qnorm(p)

rfunc <- distfuncs("norm")$r # returns rnorm
rfunc(n = 10, mean = 100, sd = 10)

faux documentation built on April 20, 2023, 9:13 a.m.