Skip to content

Commit 5e09e76

Browse files
authoredNov 19, 2021
Merge pull request #537 from bashtage/alejandro-cermeno-patch-2
Alejandro cermeno patch 2
2 parents a173b3f + 8ffbfd8 commit 5e09e76

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed
 

‎arch/tests/univariate/test_mean.py

+5
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@
3535
)
3636
from arch.univariate.mean import ARX, HARX, LS, ConstantMean, ZeroMean, arch_model
3737
from arch.univariate.volatility import (
38+
APARCH,
3839
ARCH,
3940
EGARCH,
4041
FIGARCH,
@@ -597,6 +598,9 @@ def test_arch_model(self):
597598
am = arch_model(self.y, vol="figarch")
598599
assert isinstance(am.volatility, FIGARCH)
599600

601+
am = arch_model(self.y, vol="aparch")
602+
assert isinstance(am.volatility, APARCH)
603+
600604
with pytest.raises(ValueError):
601605
arch_model(self.y, mean="unknown")
602606
with pytest.raises(ValueError):
@@ -1103,6 +1107,7 @@ def test_backcast_error(simulated_data):
11031107
GARCH,
11041108
EGARCH,
11051109
FIGARCH,
1110+
APARCH,
11061111
HARCH,
11071112
MIDASHyperbolic,
11081113
RiskMetrics2006,

0 commit comments

Comments
 (0)
Please sign in to comment.