Learn R Programming

fitdistrplus (version 1.1-6)

toxocara: Parasite abundance in insular feral cats

Description

Toxocara cati abundance in feral cats living on Kerguelen island.

Usage

data(toxocara)

Arguments

Format

toxocara is a data frame with 1 column (number: number of parasites in digestive tract)

Examples

Run this code
# NOT RUN {
# (1) load of data
#
data(toxocara)

# (2) description and plot of data
#
number <- toxocara$number
descdist(number,discrete=TRUE,boot=1000)
plotdist(number,discrete=TRUE)

# (3) fit of a Poisson distribution to data
#
fitp <- fitdist(number,"pois")
summary(fitp)
plot(fitp)

# (4) fit of a negative binomial distribution to data
#
fitnb <- fitdist(number,"nbinom")
summary(fitnb)
plot(fitnb)

# }

Run the code above in your browser using DataLab