Skip to content

Commit 2fbb03e

Browse files
committed
add "moment_match" to ok_args for loo functions
1 parent 23e00b5 commit 2fbb03e

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

R/ppc-loo.R

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -174,7 +174,7 @@ ppc_loo_pit_overlay <- function(y,
174174
adjust = 1,
175175
kernel = "gaussian",
176176
n_dens = 1024) {
177-
check_ignored_arguments(...)
177+
check_ignored_arguments(..., ok_args = list("moment_match"))
178178

179179
data <-
180180
ppc_loo_pit_data(
@@ -333,7 +333,7 @@ ppc_loo_pit_qq <- function(y,
333333
compare = c("uniform", "normal"),
334334
size = 2,
335335
alpha = 1) {
336-
check_ignored_arguments(...)
336+
check_ignored_arguments(..., ok_args = list("moment_match"))
337337

338338
compare <- match.arg(compare)
339339
if (!is.null(pit)) {
@@ -409,7 +409,7 @@ ppc_loo_pit_ecdf <- function(y,
409409
prob = .99,
410410
plot_diff = FALSE,
411411
interpolate_adj = NULL) {
412-
check_ignored_arguments(...)
412+
check_ignored_arguments(..., ok_args = list("moment_match"))
413413

414414
if (!is.null(pit)) {
415415
inform("'pit' specified so ignoring 'y','yrep','lw' if specified.")
@@ -534,7 +534,7 @@ ppc_loo_intervals <-
534534
fatten = 2.5,
535535
linewidth = 1,
536536
order = c("index", "median")) {
537-
check_ignored_arguments(...)
537+
check_ignored_arguments(..., ok_args = list("moment_match"))
538538
y <- validate_y(y)
539539
order_by_median <- match.arg(order) == "median"
540540
if (!is.null(intervals)) {
@@ -626,7 +626,7 @@ ppc_loo_ribbon <-
626626
prob_outer = 0.9,
627627
alpha = 0.33,
628628
size = 0.25) {
629-
check_ignored_arguments(...)
629+
check_ignored_arguments(..., ok_args = list("moment_match"))
630630
y <- validate_y(y)
631631
if (!is.null(intervals)) {
632632
stopifnot(is.matrix(intervals), ncol(intervals) %in% c(3, 5))

0 commit comments

Comments
 (0)