-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
More type stabilization; use of SnoopCompile.write to precompile
- Loading branch information
Showing
16 changed files
with
597 additions
and
418 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,3 +7,5 @@ voters.dta | |
test/profiling.jl | ||
src/WRE2.jl | ||
docs/build/ | ||
profile.pb.gz | ||
src/precompiler.jl |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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.6.2" | ||
version = "0.6.3" | ||
|
||
[deps] | ||
Distributions = "31c24e10-a181-5473-b8eb-7969acd0382f" | ||
|
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,80 @@ | ||
# run this in a fresh Julia session after having commented out the precompile lines at the bottom of WildBootTests.jl, both to avoid complications and force re-precompile | ||
push!(LOAD_PATH, ".") | ||
using WildBootTests | ||
|
||
using SnoopCompileCore | ||
tinf = @snoopi_deep begin | ||
for T in (Float32, Float64) | ||
resp, predexog, clustid = rand(T, 400), rand(T, 400, 4), Int32.(rand(1900:1920, 400)) | ||
test = wildboottest(T, [0 0 0 1], [.04]; resp, predexog, clustid, auxwttype=WildBootTests.webb) | ||
teststat(test); p(test); CI(test); plotpoints(test); | ||
|
||
test = wildboottest(T, [0 0 0 1], [.04]; resp, predexog, clustid, reps=9999999, auxwttype=WildBootTests.webb, getCI=false) | ||
teststat(test); p(test); | ||
|
||
test = wildboottest(T, [0 0 0 1; 0 0 1 0], [0.05; -0.02]; resp, predexog, clustid, reps=9999, auxwttype=WildBootTests.webb) | ||
teststat(test); p(test); | ||
|
||
resp, predexog, clustid = rand(T, 2000), rand(T, 2000, 4), Int32.(rand(1:12, 2000)) | ||
test = wildboottest(T, [0 1 0 0], [0]; R1=[0 0 1 0], r1=[.2], resp, predexog, clustid) | ||
teststat(test); p(test); CI(test); | ||
|
||
resp, predexog, clustid, predendog, inst = rand(T, 2000), rand(T, 2000, 3), Int32.(rand(1:12, 2000)), rand(2000), rand(2000) | ||
test = wildboottest(T, [0 0 0 1], [0]; resp, predexog, predendog, inst, clustid, small=false, reps=9999, ptype=WildBootTests.equaltail) | ||
teststat(test); p(test); CI(test); | ||
|
||
test = wildboottest(T, [0 0 0 1], [.0]; resp, predexog, predendog, inst, clustid, small=false, reps=9999, auxwttype=WildBootTests.webb, bootstrapc=true, ptype=WildBootTests.equaltail) | ||
teststat(test); p(test); CI(test); | ||
|
||
test = wildboottest(T, [0 0 0 1], [0]; resp, predexog, predendog, inst, clustid, small=false, ARubin=true, reps=9999) | ||
teststat(test); p(test); CI(test); | ||
|
||
test = wildboottest(T, [0 0 0 1], [0]; resp, predexog, predendog, inst, clustid, small=false, ARubin=true, reps=9999, imposenull=false) | ||
teststat(test); p(test); CI(test); | ||
|
||
test = wildboottest(T, [0 0 0 1], [0]; resp, predexog, predendog, inst, clustid, small=false, reps=0) | ||
teststat(test); p(test); CI(test); | ||
|
||
test = wildboottest(T, [0 0 0 1], [0]; resp, predexog, predendog, inst, clustid, small=false, reps=0, imposenull=false) | ||
teststat(test); p(test); CI(test); | ||
|
||
resp, predexog, clustid, predendog, inst = rand(T, 2000), rand(T, 2000, 1), Int32.(rand(1:12, 2000)), rand(2000), rand(2000,2) | ||
test = wildboottest(T, [0 1], [0]; resp, predexog, predendog, inst, LIML=true, clustid, small=false, reps=999) | ||
teststat(test); p(test); CI(test); | ||
|
||
resp, predexog, clustid, predendog, inst = rand(T, 2000,), rand(T, 2000, 5), Int32.(rand(1:12, 2000)), rand(2000), rand(2000,2) | ||
test = wildboottest(T, [0 0 0 0 0 1], [0]; resp, predexog, predendog, inst, Fuller=1, clustid, small=false, reps=9999, auxwttype=WildBootTests.webb) | ||
teststat(test); p(test); CI(test); | ||
|
||
resp, predexog, clustid, obswt, feid = rand(T, 2000,), rand(T, 2000, 3), Int32.(rand(1:12, 2000, 2)), rand(2000), Int64.(rand(1:12,2000)) | ||
test = wildboottest(T, [0 0 1], [0]; resp, predexog, clustid, nbootclustvar=1, nerrclustvar=2, obswt, feid) | ||
teststat(test); p(test); CI(test); | ||
|
||
resp, predexog, clustid, feid = rand(T, 20000,), rand(T, 20000, 12), Int32.(rand(1:12, 20000, 2)), Int32.(rand(1:12,20000)) | ||
test = wildboottest(T, [1 zeros(1,size(predexog,2)-1)], [0]; resp, predexog, clustid, nbootclustvar=1, nerrclustvar=2, feid, reps=9999) | ||
teststat(test); p(test); CI(test); | ||
test = wildboottest(T, [1 zeros(1,size(predexog,2)-1)], [0]; resp, predexog, clustid, nbootclustvar=1, nerrclustvar=2, feid, reps=9999) | ||
teststat(test); p(test); CI(test); | ||
test = wildboottest(T, [1 zeros(1,size(predexog,2)-1)], [0]; resp, predexog, clustid, nbootclustvar=2, nerrclustvar=2, feid, reps=9999) | ||
teststat(test); p(test); CI(test); | ||
|
||
|
||
resp, predexog, clustid = rand(T, 20000,), rand(T, 20000, 12), Int32.(rand(1:12, 20000, 2)) | ||
test = wildboottest(T, [0 1 zeros(1,size(predexog,2)-2)], [0]; resp, predexog, clustid=clustid[:,1], gridpoints=[10], reps=9999) | ||
teststat(test); p(test); CI(test); | ||
test = wildboottest(T, [0 1 zeros(1,size(predexog,2)-2)], [0]; resp, predexog, clustid=clustid[:,1], reps=9999, imposenull=false) | ||
teststat(test); p(test); CI(test); | ||
test = wildboottest(T, [0 1 zeros(1,size(predexog,2)-2)], [0]; resp, predexog, clustid=clustid[:,[2,1]], nbootclustvar=2, nerrclustvar=1, reps=9999) | ||
teststat(test); p(test); CI(test); | ||
test = wildboottest(T, [0 1 zeros(1,size(predexog,2)-2)], [0]; resp, predexog, clustid=clustid[:,[2,1]], nbootclustvar=2, nerrclustvar=1, reps=9999, imposenull=false) | ||
teststat(test); p(test); CI(test); | ||
test = wildboottest(T, [0 1 zeros(1,size(predexog,2)-2)], [0]; resp, predexog, clustid= [collect(1:size(resp,1)) clustid[:,2]], nbootclustvar=1, nerrclustvar=1, reps=9999) | ||
teststat(test); p(test); CI(test); | ||
test = wildboottest(T, [0 1 zeros(1,size(predexog,2)-2)], [0]; resp, predexog, clustid= [collect(1:size(resp,1)) clustid[:,2]], nbootclustvar=1, nerrclustvar=1, reps=9999, imposenull=false) | ||
teststat(test); p(test); CI(test); | ||
end | ||
end | ||
|
||
using SnoopCompile | ||
ttot, pcs = SnoopCompile.parcel(tinf); | ||
SnoopCompile.write("/src", [pcs[end]]) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
5284b9f
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@JuliaRegistrator register
5284b9f
There was a problem hiding this comment.
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/50421
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: