R/fit_distributions.R
combine_lognorm_trunc.RdWeight a set of lognormal parameters into a single distribution
combine_lognorm_trunc(dat)
| dat | Dataframe of meanlog, sdlog, min, max, and sdlog. |
|---|
A dataframe.
Other distribution fitting functions:
combine_lognorm(),
combine_norm(),
fit_capabilities_geomean(),
fit_capabilities(),
fit_lognorm_trunc(),
fit_lognorm(),
fit_norm_trunc(),
fit_pois(),
fit_scenarios_geomean(),
fit_scenarios(),
fit_threat_communities(),
generate_cost_function(),
lognormal_to_normal(),
normal_to_lognormal()
dat <- data.frame(meanlog = c(1, 1.5), sdlog = c(1, 2), min = 0, max = Inf, weight = c(2, 1)) combine_lognorm_trunc(dat)#> meanlog sdlog min max #> 1 1.166667 1.333333 0 Inf