Skip to content

Commit

Permalink
Move obs_prob next to nsim_obs for logical flow
Browse files Browse the repository at this point in the history
  • Loading branch information
jamesmbaazam committed Mar 8, 2024
1 parent 5e6fd49 commit 7172ffd
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions R/likelihood.R
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@
#' @param chains Vector of chain summaries (sizes/lengths)
#' @param nsim_obs Number of simulations if the log-likelihood/likelihood is to
#' be approximated for imperfect observations.
#' @param obs_prob Observation probability (assumed constant)
#' @param log Logical; Should the log-likelihoods be transformed to
#' likelihoods? (Defaults to TRUE).
#' @param obs_prob Observation probability (assumed constant)
#' @param exclude A vector of indices of the sizes/lengths to exclude from the
#' log-likelihood calculation.
#' @param individual If TRUE, a vector of individual log-likelihood/likelihood
Expand Down Expand Up @@ -42,7 +42,7 @@
#' )
#' @export
likelihood <- function(chains, statistic = c("size", "length"), offspring_dist,
nsim_obs, log = TRUE, obs_prob = 1, stat_max = Inf,
nsim_obs, obs_prob = 1, log = TRUE, stat_max = Inf,
exclude = NULL, individual = FALSE, ...) {
statistic <- match.arg(statistic)

Expand Down
6 changes: 3 additions & 3 deletions man/likelihood.Rd

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

0 comments on commit 7172ffd

Please sign in to comment.