Skip to content

Commit 1969b5b

Browse files
authored
Merge pull request #632 from bashtage/fix-clustered
DOC: Change "cluster" to "clustered" in the docs
2 parents 3111b39 + ad5b964 commit 1969b5b

File tree

10 files changed

+9
-40
lines changed

10 files changed

+9
-40
lines changed

ci/azure_template_posix.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -100,6 +100,7 @@ jobs:
100100
flake8 linearmodels
101101
black --check linearmodels
102102
isort --check linearmodels
103+
ruff check linearmodels
103104
displayName: 'Check style and formatting'
104105
105106
- script: |

linearmodels/compat/formulaic.py

Lines changed: 0 additions & 12 deletions
This file was deleted.

linearmodels/iv/_utility.py

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -13,11 +13,6 @@
1313

1414
import linearmodels.typing.data
1515

16-
from ..compat.formulaic import monkey_patch_materializers
17-
18-
# Monkey patch parsers if needed, remove once formulaic updated
19-
monkey_patch_materializers()
20-
2116
PARSING_ERROR = """
2217
Conversion of formula blocks to DataFrames failed.
2318
The formula blocks used for conversion were:

linearmodels/iv/absorbing.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1020,7 +1020,7 @@ def fit(
10201020
* "robust", "heteroskedastic" - Heteroskedasticity robust inference
10211021
* "kernel" - Heteroskedasticity and autocorrelation robust
10221022
inference
1023-
* "cluster" - One-way cluster dependent inference.
1023+
* "clustered" - One-way cluster dependent inference.
10241024
Heteroskedasticity robust
10251025
10261026
debiased : bool

linearmodels/iv/gmm.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -380,7 +380,7 @@ class IVGMMCovariance(HomoskedasticCovariance):
380380
* "robust", "heteroskedastic" - Allows for heteroskedasticity by not
381381
autocorrelation
382382
* "kernel" - Allows for heteroskedasticity and autocorrelation
383-
* "cluster" - Allows for one-way cluster dependence
383+
* "clustered" - Allows for one-way cluster dependence
384384
385385
debiased : bool
386386
Flag indicating whether to debias the covariance estimator

linearmodels/iv/model.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -632,7 +632,7 @@ def fit(
632632
* "robust", "heteroskedastic" - Heteroskedasticity robust inference
633633
* "kernel" - Heteroskedasticity and autocorrelation robust
634634
inference
635-
* "cluster" - One-way cluster dependent inference.
635+
* "clustered" - One-way cluster dependent inference.
636636
Heteroskedasticity robust
637637
638638
debiased : bool
@@ -976,7 +976,7 @@ class _IVGMMBase(_IVModelBase):
976976
* "robust", "heteroskedastic" - Allows for heteroskedasticity by not
977977
autocorrelation
978978
* "kernel" - Allows for heteroskedasticity and autocorrelation
979-
* "cluster" - Allows for one-way cluster dependence
979+
* "clustered" - Allows for one-way cluster dependence
980980
981981
The estimator is defined as
982982
@@ -1079,7 +1079,7 @@ class IVGMM(_IVGMMBase):
10791079
* "robust", "heteroskedastic" - Allows for heteroskedasticity by not
10801080
autocorrelation
10811081
* "kernel" - Allows for heteroskedasticity and autocorrelation
1082-
* "cluster" - Allows for one-way cluster dependence
1082+
* "clustered" - Allows for one-way cluster dependence
10831083
10841084
The estimator is defined as
10851085
@@ -1245,7 +1245,7 @@ def fit(
12451245
* "robust", "heteroskedastic" - Allows for heteroskedasticity but
12461246
not autocorrelation
12471247
* "kernel" - Allows for heteroskedasticity and autocorrelation
1248-
* "cluster" - Allows for one-way cluster dependence
1248+
* "clustered" - Allows for one-way cluster dependence
12491249
12501250
debiased : bool
12511251
Flag indicating whether to debiased the covariance estimator using
@@ -1355,7 +1355,7 @@ class IVGMMCUE(_IVGMMBase):
13551355
* "robust", "heteroskedastic" - Allows for heteroskedasticity by not
13561356
autocorrelation
13571357
* "kernel" - Allows for heteroskedasticity and autocorrelation
1358-
* "cluster" - Allows for one-way cluster dependence
1358+
* "clustered" - Allows for one-way cluster dependence
13591359
13601360
In most circumstances, the ``center`` weight option should be ``True`` to
13611361
avoid starting value dependence.

linearmodels/panel/model.py

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
from __future__ import annotations
22

3-
from linearmodels.compat.formulaic import monkey_patch_materializers
4-
53
from collections.abc import Mapping
64
from typing import Any, NamedTuple, Union, cast
75

@@ -58,9 +56,6 @@
5856
from linearmodels.shared.utility import AttrDict, ensure_unique_column, panel_to_frame
5957
import linearmodels.typing.data
6058

61-
# Monkey patch parsers if needed, remove once formulaic updated
62-
monkey_patch_materializers()
63-
6459
CovarianceEstimator = Union[
6560
ACCovariance,
6661
ClusteredCovariance,

linearmodels/shared/hypotheses.py

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
from __future__ import annotations
22

3-
from linearmodels.compat.formulaic import monkey_patch_materializers
4-
53
from collections.abc import Mapping
64

75
from formulaic.utils.constraints import LinearConstraints
@@ -11,9 +9,6 @@
119

1210
import linearmodels.typing.data
1311

14-
# Monkey patch parsers if needed, remove once formulaic updated
15-
monkey_patch_materializers()
16-
1712

1813
class WaldTestStatistic:
1914
"""

linearmodels/system/model.py

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,6 @@
1414

1515
from __future__ import annotations
1616

17-
from linearmodels.compat.formulaic import monkey_patch_materializers
18-
1917
from collections.abc import Mapping, Sequence
2018
from functools import reduce
2119
import textwrap
@@ -61,9 +59,6 @@
6159

6260
__all__ = ["SUR", "IV3SLS", "IVSystemGMM", "LinearConstraint"]
6361

64-
# Monkey patch parsers if needed, remove once formulaic updated
65-
monkey_patch_materializers()
66-
6762
UNKNOWN_EQ_TYPE = """
6863
Contents of each equation must be either a dictionary with keys "dependent"
6964
and "exog" or a 2-element tuple of he form (dependent, exog).

requirements.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,6 @@ statsmodels>=0.13.0
55
mypy_extensions>=0.4
66
Cython>=3.0.10
77
pyhdfe>=0.1
8-
formulaic>=1.0.0
8+
formulaic>=1.0.2
99
# versioning
1010
setuptools_scm[toml]>=8.0.0,<9.0.0

0 commit comments

Comments
 (0)