R/distfun.R
fit_univariate_man.Rd
Fit Univariate Distributions by Specifying Parameters
fit_univariate_man(distribution, parameters)
distribution character name
named vector of parameters to set
list of distribution functions for d, p, q, r, and parameters
manFun <- fit_univariate_man('norm', c(mean = 2, sd = 5)) set.seed(5) m1 <- mean(manFun$rnorm(100000)) set.seed(5) m2 <- mean(rnorm(100000, 2, 5)) identical(m1, m2) #> [1] TRUE