Skip to content

Commit ea85e15

Browse files
authored
Merge pull request #331 from bashtage/rank-check
ENH: Allow rank check to be disabled
2 parents 90953b3 + 7270620 commit ea85e15

File tree

9 files changed

+213
-62
lines changed

9 files changed

+213
-62
lines changed

doc/source/changes.rst

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,17 @@
11
Change Log
22
==========
33

4+
Since 4.20
5+
----------
6+
* Added ``rank_check`` argument to panel-data models that allows the rank
7+
check to be skipped. Estimating a model that is rank deficient may result
8+
in unreliable estiamtes and so caution is needed if using this option.
9+
* Changed the rank check to use :func:`numpy.linalg.lstsq` which is better
10+
aligned with parameter estimation than the :func:`numpy.linalg.svd`-based
11+
:func:`numpy.linalg.matrix_rank`.
12+
* Changed the default least squares used to :func:`scipy.linalg.lstsq` so
13+
that the ``lapack_driver`` can be changed to use QR factorization.
14+
415
Version 4.20
516
------------
617
* Correct calculation of first-stage F-statistic in IV models.

linearmodels/azure-pipelines.yml

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

linearmodels/conftest.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33

44
def pytest_configure(config):
55
# Minimal config to simplify running tests from lm.test()
6+
config.addinivalue_line("markers", "example: mark a test as an example")
67
config.addinivalue_line("markers", "slow: mark a test as slow")
78
config.addinivalue_line(
89
"markers", "smoke: mark a test as a coding error (smoke) test"
@@ -17,6 +18,7 @@ def pytest_addoption(parser):
1718
parser.addoption("--only-slow", action="store_true", help="run only slow tests")
1819
parser.addoption("--skip-smoke", action="store_true", help="skip smoke tests")
1920
parser.addoption("--only-smoke", action="store_true", help="run only smoke tests")
21+
parser.addoption("--skip-examples", action="store_true", help="skip examples tests")
2022

2123

2224
def pytest_runtest_setup(item):
@@ -31,3 +33,6 @@ def pytest_runtest_setup(item):
3133

3234
if "smoke" not in item.keywords and item.config.getoption("--only-smoke"):
3335
pytest.skip("skipping due to --only-smoke")
36+
37+
if "example" in item.keywords and item.config.getoption("--skip-examples"):
38+
pytest.skip("skipping due to --skip-examples")

linearmodels/panel/_utility.pxi

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
from linearmodels.typing import NDArray
2+
3+
def _drop_singletons(meta: NDArray, orig_dest: NDArray) -> None:...

0 commit comments

Comments
 (0)