Description Usage Arguments Value References See Also Examples
This function uses maximum likelihood to fit a nominated probability density function to the data of a seedtrap transect holder.
1 | fitDistances(x, family)
|
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. |
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.
1 2 3 4 | library(MASS)
s1 <- trapTransect(distances = 1:4, seed.counts = c(4, 3, 2, 0))
allTraps <- transectHolder(s1, family="Weibull")
fitDistances(allTraps, "exponential")
|
Loading required package: MASS
Loading required package: lattice
rate
0.5625
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.