Skip to content

Commit

Permalink
Fix determination of nan type
Browse files Browse the repository at this point in the history
  • Loading branch information
sethaxen committed Nov 18, 2024
1 parent 7118112 commit 44ed307
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/mcse.jl
Original file line number Diff line number Diff line change
Expand Up @@ -96,8 +96,7 @@ end
function _mcse_quantile(x, p, Seff)
Seff === missing && return missing
if isnan(Seff)
T = eltype(x) / 1
return T(NaN)
return oftype(oneunit(eltype(x)) / 1, NaN)
end
S = length(x)
# quantile error distribution is asymptotically normal; estimate σ (mcse) with 2
Expand Down

0 comments on commit 44ed307

Please sign in to comment.