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()
John Giles
get_beta_params(0.6, 0.03)#> $shape1 #> [1] 4.2 #> #> $shape2 #> [1] 2.8 #>#> $shape1 #> [1] 1.59125336 13.35693311 0.02174418 3.52083188 6.41864717 #> #> $shape2 #> [1] 0.2944077 4.9462227 0.5442898 7.0261602 2.1478568 #>