We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 119be4a commit 6ea15a3Copy full SHA for 6ea15a3
R/psis.R
@@ -362,7 +362,8 @@ prepare_psis_r_eff <- function(r_eff, len) {
362
} else if (length(r_eff) != len) {
363
stop("'r_eff' must have one value or one value per observation.", call. = FALSE)
364
} else if (anyNA(r_eff)) {
365
- stop("Can't mix NA and not NA values in 'r_eff'.", call. = FALSE)
+ message("If `r_eff` has length `len` but has `NA`s then `NA`s are replaced with 1's.")
366
+ r_eff[is.na(r_eff)] <- 1
367
}
368
r_eff
369
0 commit comments