This function finds the two shape parameters for the Beta distribution of a random variable between 0 and 1.
get_beta_params(mu, sigma)
mu | scalar or vector giving the mean of the proportion |
---|---|
sigma | scalar or vector giving the standard deviation of the proportion |
A list containing the two shape parameters of the Beta distribution
Other utility:
get_admin_level()
,
get_gamma_params()
,
get_pop_vec()
,
get_unique_coords()
,
get_unique_ids()
get_beta_params(0.6, 0.03)#> $shape1 #> [1] 4.2 #> #> $shape2 #> [1] 2.8 #>#> $shape1 #> [1] 19.51621697 0.04537517 0.29124849 -0.82592187 0.36789118 #> #> $shape2 #> [1] 19.684547428 2.278547257 3.049377364 -0.003348041 0.022596671 #>