powered by
This function uses maximum likelihood to fit a nominated probability density function to the data of a seedtrap transect holder.
fitDistances(x, family)
The function returns the parameter estimates for the nominated family.
an object of class transectHolder
the nominated distribution, which must be one of those distributions that can be fit by fitdistr of the MASS package.
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
fitdistr
trapTransect
library(MASS) s1 <- trapTransect(distances = 1:4, seed.counts = c(4, 3, 2, 0)) allTraps <- transectHolder(s1, family="Weibull") fitDistances(allTraps, "exponential")
Run the code above in your browser using DataLab