Skip to content

Commit

Permalink
Fix check issues
Browse files Browse the repository at this point in the history
  • Loading branch information
kenkellner committed Sep 30, 2024
1 parent cb8750d commit a09a5c6
Show file tree
Hide file tree
Showing 15 changed files with 29 additions and 29 deletions.
4 changes: 2 additions & 2 deletions R/colext.R
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
#' @param gammaformula Right-hand sided formula for colonization probability
#' @param epsilonformula Right-hand sided formula for extinction probability
#' @param pformula Right-hand sided formula for detection probability
#' @param data A \code{\link{unmarkedMultFrame}} object
#' @param data A \code{\link[unmarked]{unmarkedMultFrame}} object
#' @param prior_intercept_psi Prior distribution for the intercept of the
#' psi (initial occupancy probability) model; see \code{?priors} for options
#' @param prior_coef_psi Prior distribution for the regression coefficients of
Expand All @@ -29,7 +29,7 @@
#' @param log_lik If \code{TRUE}, Stan will save pointwise log-likelihood values
#' in the output. This can greatly increase the size of the model. If
#' \code{FALSE}, the values are calculated post-hoc from the posteriors
#' @param ... Arguments passed to the \code{\link{stan}} call, such as
#' @param ... Arguments passed to the \code{\link[rstan]{stan}} call, such as
#' number of chains \code{chains} or iterations \code{iter}
#'
#' @return \code{ubmsFitColext} object describing the model fit.
Expand Down
4 changes: 2 additions & 2 deletions R/distsamp.R
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
#'
#' @param formula Double right-hand side formula describing covariates of
#' detection and occupancy in that order
#' @param data A \code{\link{unmarkedFrameDS}} object
#' @param data A \code{\link[unmarked]{unmarkedFrameDS}} object
#' @param keyfun One of the following detection functions:
#' \code{"halfnorm"} for half-normal, \code{"exp"} for negative exponential,
#' or \code{"hazard"} for hazard-rate (see warning below)
Expand All @@ -24,7 +24,7 @@
#' @param prior_intercept_scale Prior distribution for the intercept of the
#' scale parameter (i.e., log(scale)) for Hazard-rate models
#' @param prior_sigma Prior distribution on random effect standard deviations
#' @param ... Arguments passed to the \code{\link{stan}} call, such as
#' @param ... Arguments passed to the \code{\link[rstan]{stan}} call, such as
#' number of chains \code{chains} or iterations \code{iter}
#'
#' @return \code{ubmsFitDistsamp} object describing the model fit.
Expand Down
4 changes: 2 additions & 2 deletions R/multinomPois.R
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
#'
#' @param formula Double right-hand side formula describing covariates of
#' detection and abundance in that order
#' @param data A \code{\link{unmarkedFrameMPois}} object
#' @param data A \code{\link[unmarked]{unmarkedFrameMPois}} object
#' @param prior_intercept_state Prior distribution for the intercept of the
#' state (abundance) model; see \code{?priors} for options
#' @param prior_coef_state Prior distribution for the regression coefficients of
Expand All @@ -18,7 +18,7 @@
#' @param log_lik If \code{TRUE}, Stan will save pointwise log-likelihood values
#' in the output. This can greatly increase the size of the model. If
#' \code{FALSE}, the values are calculated post-hoc from the posteriors
#' @param ... Arguments passed to the \code{\link{stan}} call, such as
#' @param ... Arguments passed to the \code{\link[rstan]{stan}} call, such as
#' number of chains \code{chains} or iterations \code{iter}
#'
#' @return \code{ubmsFitMultinomPois} object describing the model fit.
Expand Down
4 changes: 2 additions & 2 deletions R/occu.R
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
#'
#' @param formula Double right-hand side formula describing covariates of
#' detection and occupancy in that order
#' @param data A \code{\link{unmarkedFrameOccu}} object
#' @param data A \code{\link[unmarked]{unmarkedFrameOccu}} object
#' @param prior_intercept_state Prior distribution for the intercept of the
#' state (occupancy probability) model; see \code{?priors} for options
#' @param prior_coef_state Prior distribution for the regression coefficients of
Expand All @@ -18,7 +18,7 @@
#' @param log_lik If \code{TRUE}, Stan will save pointwise log-likelihood values
#' in the output. This can greatly increase the size of the model. If
#' \code{FALSE}, the values are calculated post-hoc from the posteriors
#' @param ... Arguments passed to the \code{\link{stan}} call, such as
#' @param ... Arguments passed to the \code{\link[rstan]{stan}} call, such as
#' number of chains \code{chains} or iterations \code{iter}
#'
#' @return \code{ubmsFitOccu} object describing the model fit.
Expand Down
4 changes: 2 additions & 2 deletions R/occuRN.R
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
#'
#' @param formula Double right-hand side formula describing covariates of
#' detection and abundance in that order
#' @param data A \code{\link{unmarkedFrameOccu}} object
#' @param data A \code{\link[unmarked]{unmarkedFrameOccu}} object
#' @param K Integer upper index of integration for N-mixture. This should be
#' set high enough so that it does not affect the parameter estimates.
#' Note that computation time will increase with K.
Expand All @@ -22,7 +22,7 @@
#' @param log_lik If \code{TRUE}, Stan will save pointwise log-likelihood values
#' in the output. This can greatly increase the size of the model. If
#' \code{FALSE}, the values are calculated post-hoc from the posteriors
#' @param ... Arguments passed to the \code{\link{stan}} call, such as
#' @param ... Arguments passed to the \code{\link[rstan]{stan}} call, such as
#' number of chains \code{chains} or iterations \code{iter}
#'
#' @return \code{ubmsFitOccuRN} object describing the model fit.
Expand Down
4 changes: 2 additions & 2 deletions R/occuTTD.R
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
#' Currently ignored as dynamic models are not yet supported.
#' @param detformula Right-hand sided formula for mean time-to-detection.
#' @param data \code{unmarkedFrameOccuTTD} object that supplies the data
#' (see \code{\link{unmarkedFrameOccuTTD}}).
#' (see \code{\link[unmarked]{unmarkedFrameOccuTTD}}).
#' @param ttdDist Distribution to use for time-to-detection; either
#' \code{"exp"} for the exponential, or \code{"weibull"} for the Weibull,
#' which adds an additional shape parameter \eqn{k}.
Expand All @@ -33,7 +33,7 @@
#' @param log_lik If \code{TRUE}, Stan will save pointwise log-likelihood values
#' in the output. This can greatly increase the size of the model. If
#' \code{FALSE}, the values are calculated post-hoc from the posteriors
#' @param ... Arguments passed to the \code{\link{stan}} call, such as
#' @param ... Arguments passed to the \code{\link[rstan]{stan}} call, such as
#' number of chains \code{chains} or iterations \code{iter}
#'
#' @return \code{ubmsFitOccuTTD} object describing the model fit.
Expand Down
4 changes: 2 additions & 2 deletions R/pcount.R
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
#'
#' @param formula Double right-hand side formula describing covariates of
#' detection and abundance in that order
#' @param data A \code{\link{unmarkedFramePCount}} object
#' @param data A \code{\link[unmarked]{unmarkedFramePCount}} object
#' @param K Integer upper index of integration for N-mixture. This should be
#' set high enough so that it does not affect the parameter estimates.
#' Note that computation time will increase with K.
Expand All @@ -22,7 +22,7 @@
#' @param log_lik If \code{TRUE}, Stan will save pointwise log-likelihood values
#' in the output. This can greatly increase the size of the model. If
#' \code{FALSE}, the values are calculated post-hoc from the posteriors
#' @param ... Arguments passed to the \code{\link{stan}} call, such as
#' @param ... Arguments passed to the \code{\link[rstan]{stan}} call, such as
#' number of chains \code{chains} or iterations \code{iter}
#'
#' @return \code{ubmsFitPcount} object describing the model fit.
Expand Down
4 changes: 2 additions & 2 deletions man/stan_colext.Rd

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

4 changes: 2 additions & 2 deletions man/stan_distsamp.Rd

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

4 changes: 2 additions & 2 deletions man/stan_multinomPois.Rd

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

4 changes: 2 additions & 2 deletions man/stan_occu.Rd

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

4 changes: 2 additions & 2 deletions man/stan_occuRN.Rd

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

4 changes: 2 additions & 2 deletions man/stan_occuTTD.Rd

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

4 changes: 2 additions & 2 deletions man/stan_pcount.Rd

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

2 changes: 1 addition & 1 deletion vignettes/ubms.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -195,7 +195,7 @@ To get the corresponding probabilities, you can use the `predict` function, whic

For each parameter, the mean and standard deviation of the posterior distribution are given.
Unlike `unmarked` output, there is no $Z$ or $p$-value.
Instead, there is a 95% [uncertainty interval](https://statmodeling.stat.columbia.edu/2016/11/26/reminder-instead-confidence-interval-lets-say-uncertainty-interval/) provided.
Instead, there is a 95% uncertainty interval provided.

The final two columns in each summary table `n_eff` and `Rhat` are MCMC diagnostics.
We will discuss their meaning later.
Expand Down

0 comments on commit a09a5c6

Please sign in to comment.