Skip to content

Commit

Permalink
avoid loaded term
Browse files Browse the repository at this point in the history
  • Loading branch information
IndrajeetPatil committed Oct 6, 2023
1 parent e05b164 commit 477f90a
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion R/check_prior.R
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ check_prior.blavaan <- check_prior.brmsfit
method = "gelman",
verbose = TRUE,
cleaned_parameters = NULL) {
# sanity check for matching parameters. Some weird priors like
# validation check for matching parameters. Some weird priors like
# rstanarm's R2 prior might cause problems

if (!is.null(cleaned_parameters) && ncol(priors) != ncol(posteriors)) {
Expand Down
2 changes: 1 addition & 1 deletion R/format.R
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ format.describe_posterior <- function(x,
attributes(x) <- utils::modifyList(att, attributes(x))
}

# sanity check
# validation check
if (is.null(digits)) {
digits <- 2
}
Expand Down
2 changes: 1 addition & 1 deletion R/p_to_bf.R
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ p_to_bf.default <- function(x, log = FALSE, ...) {
params <- parameters::p_value(x)
p <- params$p
n_obs <- insight::n_obs(x)
# sanity check
# validation check
if (is.null(n_obs)) {
# user may also pass n_obs via dots...
n_obs <- list(...)$n_obs
Expand Down
2 changes: 1 addition & 1 deletion R/spi.R
Original file line number Diff line number Diff line change
Expand Up @@ -261,7 +261,7 @@ spi.get_predicted <- function(x, ci = 0.95, use_iterations = FALSE, verbose = TR
n.sims <- length(x)
conf <- 1 - ci
nn <- round(n.sims * conf)
# sanity check for very low CI levels
# validation check for very low CI levels
if (nn >= n.sims) {
nn <- n.sims <- 1
}
Expand Down

0 comments on commit 477f90a

Please sign in to comment.