Given a set of arbitrary parameters that includes at least a weight column, take a weighted average of all the other parameters.

combine_norm(dat)

Arguments

dat

Dataframe of mean, sd and weights.

Value

A dataframe.

See also

Other distribution fitting functions: combine_lognorm_trunc, combine_lognorm, 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

Examples

dat <- data.frame(mean = c(10, 20, 30), sd = c(4, 5, 10), weight = c(2, 1, 2)) combine_norm(dat)
#> mean sd #> 1 20 6.6