Skip to content

Commit

Permalink
tweak precompilation and bump version (#111)
Browse files Browse the repository at this point in the history
  • Loading branch information
s-broda authored May 2, 2023
1 parent 3cefb4d commit dff4f48
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 19 deletions.
2 changes: 1 addition & 1 deletion Project.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
name = "ARCHModels"
uuid = "6d3278bc-c23a-5105-85e5-0d57d2bf684f"
authors = ["Simon Broda <simon.broda@alumni.ethz.ch> and contributors."]
version = "2.3.3"
version = "2.3.4"

[deps]
DataFrames = "a93c6f00-e57d-5684-b7b6-d8193f3e46c0"
Expand Down
39 changes: 21 additions & 18 deletions src/ARCHModels.jl
Original file line number Diff line number Diff line change
Expand Up @@ -65,32 +65,35 @@ include("tests.jl")
include("multivariatearchmodel.jl")
include("multivariatestandardizeddistributions.jl")
include("DCC.jl")
@static if VERSION >= v"1.9"
@static if VERSION >= v"1.9.0-alpha1"
@compile_workload begin
io = IOBuffer()
se = stderr
redirect_stderr()
# autocor(BG96.^2, 1:4, demean=true)
m = selectmodel(TGARCH, BG96)
# m = selectmodel(TGARCH, BG96)
# show(io, m)
m = fit(GARCH{1, 1}, BG96)
show(io, m)
m = fit(GARCH{1, 1}, BG96; dist=StdT)
show(io, m)
m = fit(GARCH{1, 1}, BG96; dist=StdSkewT)
show(io, m)
m = fit(GARCH{1, 1}, BG96; dist=StdGED)
m = fit(EGARCH{1, 1, 1}, BG96)
show(io, m)

# m = fit(GARCH{1, 1}, BG96; dist=StdSkewT)
# show(io, m)
# m = fit(GARCH{1, 1}, BG96; dist=StdGED)
#show(io, m)
ARCHLMTest(m, 4)
vars = VaRs(m, 0.05)
predict(m, :volatility; level=0.01)
t = DQTest([1., 2.], [.1, .1], .01)
show(io, t)
m = selectmodel(EGARCH, BG96)
show(io, m)
m = selectmodel(ARMA, BG96)
show(io, m)
m = fit(DCC, DOW29)
show(io, m)
simulate(GARCH{1, 1}([1., .9, .05]), 1000; warmup=500, meanspec=Intercept(5.), dist=StdT(3.))
# vars = VaRs(m, 0.05)
# predict(m, :volatility; level=0.01)
# t = DQTest([1., 2.], [.1, .1], .01)
# show(io, t)
# m = selectmodel(EGARCH, BG96)
# show(io, m)
# m = selectmodel(ARMA, BG96)
# show(io, m)
# m = fit(DCC, DOW29)
# show(io, m)
# simulate(GARCH{1, 1}([1., .9, .05]), 1000; warmup=500, meanspec=Intercept(5.), dist=StdT(3.))
redirect_stderr(se)
end # precompile block
end # if
Expand Down

2 comments on commit dff4f48

@s-broda
Copy link
Owner Author

@s-broda s-broda commented on dff4f48 May 2, 2023

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/82717

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 v2.3.4 -m "<description of version>" dff4f4812468be8f8691b6e78eaf187d66bb89cb
git push origin v2.3.4

Please sign in to comment.