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

Description Usage Arguments Value References See Also Examples

View source: R/fitDistances.R

Description

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

Usage

1

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.

Value

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

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")

Example output

Loading required package: MASS
Loading required package: lattice
  rate 
0.5625 

spuRs documentation built on May 2, 2019, 12:44 p.m.

Related to fitDistances in spuRs...