Skip to content

Commit 99e0f6f

Browse files
VisruthSKjgabry
andauthored
Update R/psis.R
Co-authored-by: Jonah Gabry <jgabry@gmail.com>
1 parent 2c76134 commit 99e0f6f

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

R/psis.R

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -213,7 +213,7 @@ do_psis_i <- function(log_ratios_i, tail_len_i, ...) {
213213
# shift log ratios for safer exponentation
214214
lw_i <- log_ratios_i - max(log_ratios_i)
215215

216-
if (length(unique(tail(log_ratios_i, -tail_len_i))) == 1) {
216+
if (length(unique(utils::tail(log_ratios_i, -tail_len_i))) == 1) {
217217
warning(
218218
"Can't fit generalized Pareto distribution ",
219219
"because all tail values are the same.",

0 commit comments

Comments
 (0)