Skip to content

Commit 3647792

Browse files
committed
Removed bounds from ppc_loo_pit_overlay()
1 parent 42d75e4 commit 3647792

2 files changed

Lines changed: 4 additions & 10 deletions

File tree

R/ppc-loo.R

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,8 @@ NULL
141141
#' calculated from the PIT values to the theoretical standard normal
142142
#' quantiles.
143143
#' @param trim Passed to [ggplot2::stat_density()].
144-
#' @template args-density-controls
144+
#' @param bw,adjust,kernel,n_dens Optional arguments passed to
145+
#' [stats::density()] to override the defaults.
145146
#' @param boundary_correction For `ppc_loo_pit_overlay()`, when set to `TRUE`
146147
#' (the default) the function will compute boundary corrected density values
147148
#' via convolution and a Gaussian filter, also known as the reflection method
@@ -173,10 +174,8 @@ ppc_loo_pit_overlay <- function(y,
173174
trim = FALSE,
174175
adjust = 1,
175176
kernel = "gaussian",
176-
bounds = NULL,
177177
n_dens = 1024) {
178178
check_ignored_arguments(..., ok_args = list("moment_match"))
179-
bounds <- validate_density_bounds(bounds)
180179

181180
data <-
182181
ppc_loo_pit_data(
@@ -242,7 +241,6 @@ ppc_loo_pit_overlay <- function(y,
242241
bw = bw,
243242
adjust = adjust,
244243
kernel = kernel,
245-
bounds = bounds,
246244
n = n_dens,
247245
na.rm = TRUE
248246
) +
@@ -257,7 +255,6 @@ ppc_loo_pit_overlay <- function(y,
257255
bw = bw,
258256
adjust = adjust,
259257
kernel = kernel,
260-
bounds = bounds,
261258
n = n_dens,
262259
na.rm = TRUE
263260
) +

man/PPC-loo.Rd

Lines changed: 2 additions & 5 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)