Learn R Programming

unmarked (version 0.8-5)

parboot: Evaluate goodness-of-fit of a fitted model.

Description

Evaluate goodness-of-fit of a fitted model.

Arguments

object
a fitted model of class "unmarkedFit"
nsim
number of bootstrap replicates
report
print fit statistic every 'report' iterations during resampling

Examples

Run this code
data(linetran)
(dbreaksLine <- c(0, 5, 10, 15, 20)) 

lengths <- linetran$Length

ltUMF <- with(linetran, {
	unmarkedFrameDS(y = cbind(dc1, dc2, dc3, dc4), 
	siteCovs = data.frame(Length, area, habitat), dist.breaks = dbreaksLine,
	tlength = lengths*1000, survey = "line", unitsIn = "m")
})

(fm <- distsamp(~ area ~habitat, ltUMF))

(pb <- parboot(fm))
plot(pb)

Run the code above in your browser using DataLab