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)
x
: an object of class transectHolderfamily
: the nominated distribution, which must be one of those distributions that can be fit by fitdistr of the MASS package.The function returns the parameter estimates for the nominated family.
Jones, O.D., R. Maillardet, and A.P. Robinson. 2009. An Introduction to Scientific Programming and Simulation, Using R. Chapman And Hall/CRC.
fitdistr
, trapTransect
library(MASS) s1 <- trapTransect(distances = 1:4, seed.counts = c(4, 3, 2, 0)) allTraps <- transectHolder(s1, family="Weibull") fitDistances(allTraps, "exponential")
Useful links