Learn R Programming

collector (version 0.1.3)

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

Description

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

Usage

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

Run this code
# NOT RUN {
dat <- data.frame(mean = c(10, 20, 30),
              sd = c(4, 5, 10),
              weight = c(2, 1, 2))
combine_norm(dat)
# }

Run the code above in your browser using DataLab