https://github.com/cran/unmarked
Raw File
Tip revision: 9be1f086f0b3285f0749b83937cc7542ea55321e authored by Ian Fiske on 17 March 2010, 00:00:00 UTC
version 0.8-5
Tip revision: 9be1f08
parboot.Rd
\name{parboot}
\alias{parboot}
\alias{plot,parboot,missing-method}
\alias{show,parboot-method}
\title{Evaluate goodness-of-fit of a fitted model.}
\description{Evaluate goodness-of-fit of a fitted model.}
\arguments{
	\item{object}{a fitted model of class "unmarkedFit"}
	\item{nsim}{number of bootstrap replicates}
	\item{report}{print fit statistic every 'report' iterations during resampling}}
\examples{
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)

}
back to top