Skip to content

Commit

Permalink
ENH: Allow 1d exog
Browse files Browse the repository at this point in the history
Reshape 1-d exog to 2d
  • Loading branch information
bashtage committed May 8, 2020
1 parent 55e0d00 commit 8a7bdef
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions arch/univariate/mean.py
Expand Up @@ -444,6 +444,8 @@ def _generate_lag_names(self) -> List[str]:
def _check_specification(self) -> None:
"""Checks the specification for obvious errors """
if self._x is not None:
if self._x.ndim == 1:
self._x = self._x[:, None]
if self._x.ndim != 2 or self._x.shape[0] != self._y.shape[0]:
raise ValueError(
"x must be nobs by n, where nobs is the same as "
Expand Down

0 comments on commit 8a7bdef

Please sign in to comment.