fitDistances function

Function to fit a model to seed transect distance/count data.

Function to fit a model to seed transect distance/count data.

This function uses maximum likelihood to fit a nominated probability density function to the data of a seedtrap transect holder.

fitDistances(x, family)

Arguments

  • x: an object of class transectHolder
  • family: the nominated distribution, which must be one of those distributions that can be fit by fitdistr of the MASS package.

Returns

The function returns the parameter estimates for the nominated family.

References

Jones, O.D., R. Maillardet, and A.P. Robinson. 2009. An Introduction to Scientific Programming and Simulation, Using R. Chapman And Hall/CRC.

See Also

fitdistr, trapTransect

Examples

library(MASS) s1 <- trapTransect(distances = 1:4, seed.counts = c(4, 3, 2, 0)) allTraps <- transectHolder(s1, family="Weibull") fitDistances(allTraps, "exponential")
  • Maintainer: Andrew Robinson
  • License: GPL-3
  • Last published: 2018-05-21

Useful links