fit_rac: Fit a distribution

View source: R/fit_rac.R

fit_racR Documentation

Fit a distribution

Description

Fit a well-known distribution to a species distribution.

Usage

fit_rac(x, ...)

## S3 method for class 'numeric'
fit_rac(
  x,
  distribution = c("lnorm", "lseries", "geom", "bstick"),
  ...,
  check_arguments = TRUE
)

## S3 method for class 'species_distribution'
fit_rac(
  x,
  distribution = c("lnorm", "lseries", "geom", "bstick"),
  ...,
  check_arguments = TRUE
)

Arguments

x

An object

...

Unused.

distribution

The distribution of species abundances. May be "lnorm" (log-normal), "lseries" (log-series), "geom" (geometric) or "bstick" (broken stick).

check_arguments

if TRUE, the function arguments are verified. Should be set to FALSE to save time when the arguments have been checked elsewhere.

Details

abundances can be used to fit rank-abundance curves (RAC) of classical distributions:

  • "lnorm" for log-normal \insertCitePreston1948divent.

  • "lseries" for log-series \insertCiteFisher1943divent.

  • "geom" for geometric \insertCiteMotomura1932divent.

  • "bstick" for broken stick \insertCiteMacArthur1957divent. It has no parameter, so the maximum abundance is returned.

Value

A tibble with the sites and the estimated distribution parameters.

References

\insertAllCited

Examples

fit_rac(paracou_6_abd, distribution = "lnorm")


divent documentation built on April 3, 2025, 7:40 p.m.