combine_norm: Weight a set of normal parameters into a single distribution

Description Usage Arguments Value See Also Examples

View source: R/fit_distributions.R

Description

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

Usage

1

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

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

collector documentation built on Feb. 22, 2020, 1:11 a.m.