Skip to content

Commit

Permalink
edits to Nmix description, pkg description
Browse files Browse the repository at this point in the history
  • Loading branch information
dochvam committed Jun 24, 2024
1 parent 04fa46b commit 6ed4f42
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 7 deletions.
3 changes: 2 additions & 1 deletion DESCRIPTION
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,10 @@ Title: Distributions for Ecological Models in 'nimble'
Version: 0.5.0
Maintainer: Benjamin R. Goldstein <[email protected]>
Authors@R: c(person("Benjamin R.", "Goldstein", role = c("aut", "cre"),
email = "ben.goldstein@berkeley.edu"),
email = "bgoldst2@ncsu.edu"),
person("Daniel", "Turek", role = "aut"),
person("Lauren", "Ponisio", role = "aut"),
person("Wei", "Zhang", role = "ctb"),
person("Perry", "de Valpine", role = "aut"))
Date: 2024-06-24
Description: Common ecological distributions for 'nimble' models in the form of nimbleFunction objects.
Expand Down
8 changes: 5 additions & 3 deletions R/dNmixture.R
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,9 @@
#'
#' \code{dNmixture_s} and \code{dNmixture_v} provide Poisson-Binomial mixture
#' distributions of abundance ("N-mixture") for use in \code{nimble} models.
#' Overdispersion alternatives are also provided .
#' Overdispersion alternatives using the negative binomial distribution (for
#' the abundance submodel) and the beta binomial distribution (for the detection
#' submodel) are also provided.
#'
#' @name dNmixture
#'
Expand Down Expand Up @@ -80,8 +82,8 @@
#' Beta-binomial-Poisson: BBP N-mixture uses a beta binomial distribution for
#' detection probabilities and a Poisson distribution for abundance. The beta
#' binomial distribution has scalar overdispersion parameter s (0-Inf). We
#' parameterize such that the variance of the beta binomial is \code{N \* prob
#' \* (1-prob) \* (N + s) / (s + 1)}, with greater s indicating less variance
#' parameterize such that the variance of the beta binomial is \code{N * prob
#' * (1-prob) * (N + s) / (s + 1)}, with greater s indicating less variance
#' (greater-than-binomial relatedness between observations at the site) and s ->
#' 0 indicating the binomial. The BBP is available in three suffixed forms:
#' \code{dNmixture_BBP_v} is used if \code{prob} varies between observations,
Expand Down
8 changes: 5 additions & 3 deletions man/dNmixture.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 6ed4f42

Please sign in to comment.