View source: R/uniroot_gamma_and_lnorm.R
try_SAD | R Documentation |
Wrapper for qgamma
, qinvgamma
,
and qlnorm
that takes the number of species and a shape
parameter and gives relative abundance estimates for each species.
try_SAD(rich, x, distr)
rich |
Integer, the total number of species in the species abundance distribution. |
x |
Non-negative scalar, the shape parameter for a gamma distribution. |
distr |
Character string, one of |
qgamma, qlnorm, fit_SAD,
qinvgamma
try_SAD(rich = 10, x = 0.2, distr = "lnorm")
try_SAD(rich = 10, x = 2, distr = "lnorm")
try_SAD(rich = 10, x = 0.2, distr = "gamma")
try_SAD(rich = 10, x = 2, distr = "gamma")
## Not run: try_SAD(rich = 10, x = -1, distr = "lnorm")
try_SAD(rich = 10, x = -1, distr = "gamma")
try_SAD(rich = 10, x = 0, distr = "gamma")
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.