Closed n-kall closed 8 months ago
One problem is that when pareto_khat(..., tail="both") sees constant tail, max(left_k, right_k) gives NA. It would probably be better to use k <- max(left_k, right_k, na.rm=TRUE)
pareto_khat(..., tail="both")
max(left_k, right_k)
k <- max(left_k, right_k, na.rm=TRUE)
Originally posted by @avehtari in https://github.com/stan-dev/loo/issues/250#issuecomment-1971588262
One problem is that when
pareto_khat(..., tail="both")
sees constant tail,max(left_k, right_k)
gives NA. It would probably be better to usek <- max(left_k, right_k, na.rm=TRUE)
Originally posted by @avehtari in https://github.com/stan-dev/loo/issues/250#issuecomment-1971588262