get_beta_params: Get parameters of Beta distribution

Description Usage Arguments Value Author(s) See Also Examples

View source: R/utils.R

Description

This function finds the two shape parameters for the Beta distribution of a random variable between 0 and 1.

Usage

1

Arguments

mu

scalar or vector giving the mean of the proportion

sigma

scalar or vector giving the standard deviation of the proportion

Value

A list containing the two shape parameters of the Beta distribution

Author(s)

John Giles

See Also

Other utility: get_admin_level(), get_gamma_params(), get_pop_vec(), get_unique_coords(), get_unique_ids()

Examples

1
2
3
4
get_beta_params(0.6, 0.03)

n <- 5
get_beta_params(mu=runif(n, 0, 1), sigma=runif(n, 0, 0.05))

COVID-19-Mobility-Data-Network/mobility documentation built on Nov. 22, 2021, 12:17 a.m.