find_beta_prior_with_mean_var: Find beta parameters for mean and variance

View source: R/priors.R

find_beta_prior_with_mean_varR Documentation

Find beta parameters for mean and variance

Description

Finds the alpha and beta parameters for a beta distribution that gives the desired mean and variance

Usage

find_beta_prior_with_mean_var(mean, var, make_plot = FALSE)

Arguments

mean

the mean of the beta distribution (between 0 and 1)

var

the variance of the beta distribution (this is likely going to be somewhere less than 0.25)

make_plot

if TRUE, plots the resulting beta distribution to the R device

Value

a list with alpha and beta

See Also

Other priors: calc_phi_probs_indiv(), calc_phi_probs_spline(), calc_phi_probs(), create_prior_mu(), create_prob_shifts(), find_beta_prior_mode(), find_beta_prior_with_mean(), fit_beta_prior(), fit_normal_prior(), inf_mat_prior(), infection_history_prior(), prob_mus(), prob_shifts()

Examples

find_beta_prior_with_mean_var(0.15,0.1,FALSE)

seroanalytics/serosolver documentation built on April 24, 2023, 9:52 a.m.