Skip to content

Commit

Permalink
Add check for jackknife requested in WRE
Browse files Browse the repository at this point in the history
  • Loading branch information
droodman committed Nov 22, 2022
1 parent 5b7594f commit d1e2c4b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions src/interface.jl
Original file line number Diff line number Diff line change
Expand Up @@ -242,6 +242,7 @@ function _wildboottest(T::DataType,
@assert fuller==0 || (ncols(predendog)>0 && ncols(inst)>0) "For Fuller liml, non-empty predendog and inst arguments are needed"
@assert iszero(ncols(predendog)) || ncols(inst)>0 "predendog provided without inst"
@assert !arubin || ncols(predendog)>0 "Anderson-Rubin test requested but predendog not provided"
@assert !(jk && !arubin && ncols(predendog)>0) "Jackknife not (yet) available for IV estimation, unless running Anderson-Rubin test"

if getplot || getci
@assert iszero(length(gridmin )) || length(gridmin )==nrows(R) "Length of gridmin doesn't match number of hypotheses being jointly tested"
Expand Down
2 changes: 1 addition & 1 deletion test/unittests.log
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ p = 0.7332

boottest (post_self=.05) (post=-.02) (selfemployed=-.15), reps(9999) weight(webb)
F(3, 7) = 0.8534
p = 0.7491
p = 0.7474


regress hasinsurance selfemployed post post_self
Expand Down

2 comments on commit d1e2c4b

@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/72623

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.8.2 -m "<description of version>" d1e2c4b616296c5723270f0782551f4b2b7aee27
git push origin v0.8.2

Please sign in to comment.