-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update docs and clean up pkgdown site
- Loading branch information
1 parent
b022131
commit d652d38
Showing
22 changed files
with
155 additions
and
66 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -14,3 +14,4 @@ README.Rmd | |
^vignettes/colext.Rmd.orig | ||
^.*\.Rproj$ | ||
^\.Rproj\.user$ | ||
^pkgdown$ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
\name{bup} | ||
\alias{bup} | ||
\alias{bup,unmarkedRanef-method} | ||
|
||
\title{Extract Best Unbiased Predictors (BUPs) of latent variables from \code{ranef} output} | ||
|
||
\description{ | ||
Extract Best Unbiased Predictors (BUPs) of latent variables such as | ||
occupancy or abundance from a \code{unmarkedRanef} object produced by the | ||
\code{ranef} function. Either the posterior mean or median can be requested. | ||
} | ||
|
||
\usage{ | ||
\S4method{bup}{unmarkedRanef}(object, stat = c("mean", "mode"), ...) | ||
} | ||
|
||
\arguments{ | ||
\item{object}{A \code{unmarkedRanef} object, the output of a call to \code{ranef}.} | ||
\item{stat}{The statistic to calculate from the posterior, either mean or mode.} | ||
\item{...}{Other arguments, currently ignored} | ||
} | ||
|
||
\value{ | ||
A vector of length M for single-season models, where M is the number of sites. | ||
A matrix MxT for multi-season models, where T is the number of primary periods. | ||
Values in the vector or matrix are the BUPs (occupancy or abundance states). | ||
} | ||
|
||
\seealso{ | ||
\code{\link{ranef}}, \code{\link{unmarkedRanef-class}} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,8 @@ | ||
\name{modSel} | ||
\title{Model selection results from an unmarkedFitList} | ||
\title{Model selection on a list of \code{unmarked} model fits} | ||
\description{Model selection results from an unmarkedFitList} | ||
\alias{modSel} | ||
\alias{modSel-methods} | ||
\alias{unmarkedModSel-class} | ||
\alias{show,unmarkedModSel-method} | ||
\alias{summary,unmarkedModSel-method} | ||
\alias{coef,unmarkedModSel-method} | ||
\alias{SE,unmarkedModSel-method} | ||
|
||
\arguments{ | ||
\item{object}{an object of class "unmarkedFitList" created by the function | ||
\code{\link{fitList}}.} | ||
|
@@ -17,20 +12,17 @@ | |
} | ||
} | ||
\value{ | ||
A S4 object with the following slots | ||
\item{Full}{data.frame with formula, estimates, standard errors and model | ||
selection information. Converge is optim convergence code. CondNum is | ||
model condition number. n is the number of sites. delta is delta AIC. | ||
cumltvWt is cumulative AIC weight. | ||
Rsq is Nagelkerke's (1991) R-squared index, which is only returned when | ||
the nullmod argument is specified. } | ||
\item{Names}{matrix referencing column names of estimates (row 1) and | ||
standard errors (row 2).} | ||
An object of class \code{unmarkedModSel}. | ||
} | ||
\note{Two requirements exist to conduct AIC-based model-selection and model-averaging in unmarked. First, the data objects (ie, unmarkedFrames) must be identical among fitted models. Second, the response matrix must be identical among fitted models after missing values have been removed. This means that if a response value was removed in one model due to missingness, it needs to be removed from all models. | ||
} | ||
\seealso{\code{\link{unmarkedModSel-class}}} | ||
\references{Nagelkerke, N.J.D. (2004) A Note on a General Definition of the | ||
Coefficient of Determination. \emph{Biometrika} 78, pp. 691-692.} | ||
\author{Richard Chandler \email{[email protected]}} | ||
\examples{ | ||
data(linetran) | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,58 @@ | ||
\name{unmarkedModSel-class} | ||
\title{unmarkedModSel class and methods} | ||
\alias{unmarkedModSel-class} | ||
\alias{show,unmarkedModSel-method} | ||
\alias{coef,unmarkedModSel-method} | ||
\alias{SE,unmarkedModSel-method} | ||
|
||
\description{The unmarkedModSel class and associated methods} | ||
|
||
\section{Slots}{ | ||
\describe{ | ||
\item{Full}{data.frame with formula, estimates, standard errors and model | ||
selection information. Converge is optim convergence code. CondNum is | ||
model condition number. n is the number of sites. delta is delta AIC. | ||
cumltvWt is cumulative AIC weight. | ||
Rsq is Nagelkerke's (1991) R-squared index, which is only returned when | ||
the nullmod argument is specified. } | ||
\item{Names}{matrix referencing column names of estimates (row 1) and | ||
standard errors (row 2).} | ||
} | ||
} | ||
\section{Methods}{ | ||
\describe{ | ||
\item{show}{Print the AIC model selection table} | ||
\item{coef}{Data frame of coefficients from all models in model selection table} | ||
\item{SE}{Data frame of coefficient SEs from all models in model selection table} | ||
} | ||
} | ||
\seealso{\code{\link{modSel}}} | ||
\examples{ | ||
data(linetran) | ||
(dbreaksLine <- c(0, 5, 10, 15, 20)) | ||
lengths <- linetran$Length * 1000 | ||
ltUMF <- with(linetran, { | ||
unmarkedFrameDS(y = cbind(dc1, dc2, dc3, dc4), | ||
siteCovs = data.frame(Length, area, habitat), dist.breaks = dbreaksLine, | ||
tlength = lengths, survey = "line", unitsIn = "m") | ||
}) | ||
fm1 <- distsamp(~ 1 ~1, ltUMF) | ||
fm2 <- distsamp(~ area ~1, ltUMF) | ||
fm3 <- distsamp( ~ 1 ~area, ltUMF) | ||
fl <- fitList(Null=fm1, A.=fm2, .A=fm3) | ||
fl | ||
ms <- modSel(fl, nullmod="Null") | ||
ms | ||
coef(ms) # Estimates only | ||
SE(ms) # Standard errors only | ||
(toExport <- as(ms, "data.frame")) # Everything | ||
} |
Oops, something went wrong.