Skip to content

Commit

Permalink
Small fixes; regenerated precompiles
Browse files Browse the repository at this point in the history
  • Loading branch information
droodman committed Mar 9, 2022
1 parent 2dc7fa0 commit 7bafcb3
Show file tree
Hide file tree
Showing 4 changed files with 235 additions and 273 deletions.
2 changes: 1 addition & 1 deletion Project.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
name = "WildBootTests"
uuid = "65c2e505-86ba-4c19-93f1-95506c1443d5"
authors = ["droodman <[email protected]>"]
version = "0.7.5"
version = "0.7.6"

[deps]
Distributions = "31c24e10-a181-5473-b8eb-7969acd0382f"
Expand Down
2 changes: 1 addition & 1 deletion src/init.jl
Original file line number Diff line number Diff line change
Expand Up @@ -273,7 +273,7 @@ function Init!(o::StrBootTest{T}) where T # for efficiency when varying r repea
end
end

o.dof_r = o.small ? o.NClustVar>0 ? minN - one(T) : o._Nobs - (o.kZ + o.NFE) : 0 # floating-point dof_r allows for fractional fweights, FWIW...
o.dof_r = o.small ? o.NClustVar>0 ? minN - one(T) : o._Nobs - (o.kZ + o.NFE) : zero(T) # floating-point dof_r allows for fractional fweights, FWIW...

o.sqrt = isone(o.dof) # work with t/z stats instead of F/chi2?

Expand Down
2 changes: 1 addition & 1 deletion src/plot-CI.jl
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ function plot!(o::StrBootTest{T}) where T
lo = isnan(o.gridmin[1]) ? o.confpeak - halfwidth : o.gridmin
hi = isnan(o.gridmax[1]) ? o.confpeak + halfwidth : o.gridmax
else
tmp = vec(sqrtNaN.(o.statDenom)) * (o.small ? cquantile(TDist{T}(o.dof_r), α/2) : cquantile(Normal{T}(zero(T),one(T)), α/2))
tmp = [sqrtNaN.(o.statDenom[1,1])] * (o.small ? cquantile(TDist{T}(o.dof_r), α/2) : cquantile(Normal{T}(zero(T),one(T)), α/2))
lo = isnan(o.gridmin[1]) ? o.confpeak - tmp : o.gridmin
hi = isnan(o.gridmax[1]) ? o.confpeak + tmp : o.gridmax
if o.scorebs && !o.null && !o.willplot # if doing simple Wald test with no graph, we're done
Expand Down
Loading

2 comments on commit 7bafcb3

@droodman
Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@JuliaRegistrator
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Registration pull request created: JuliaRegistries/General/56263

After the above pull request is merged, it is recommended that a tag is created on this repository for the registered package version.

This will be done automatically if the Julia TagBot GitHub Action is installed, or can be done manually through the github interface, or via:

git tag -a v0.7.6 -m "<description of version>" 7bafcb38a9cabffd8afa01eda1d6c335c2c60adb
git push origin v0.7.6

Please sign in to comment.