Module Reference¶
Models for Panel Data¶
|
One- and two-way fixed effects estimator for panel data. |
|
One-way Random Effects model for panel data. |
|
Between estimator for panel data. |
|
First difference model for panel data. |
|
Pooled coefficient estimator for panel data. |
|
Fama-MacBeth estimator for panel data. |
Estimation Results¶
|
Results container for Fama MacBeth panel data models. |
|
Results container for panel data models that do not include effects. |
|
Results container for panel data models that include effects. |
|
Results container for random effect panel data models. |
|
Results of a Hausman specification test. |
|
Comparison of multiple models. |
|
Compare the results of multiple models. |
Panel Model Covariance Estimators¶
|
Homoskedastic covariance estimation. |
|
Covariance estimation using White estimator. |
|
One-way (Rogers) or two-way clustered covariance estimation. |
|
Driscoll-Kraay heteroskedasticity-autocorrelation robust covariance estimation. |
|
Autocorrelation robust covariance estimation. |
|
HAC estimator for Fama-MacBeth estimator. |
Panel Data Structures¶
|
Abstraction to handle alternative formats for panel data. |
|
Convert a MI DataFrame to a 3-d structure where columns are items. |
Test Data Generation¶
|
Simulate panel data for testing. |
|
Typed namedtuple to hold simulated panel data. |
Errors¶
- class linearmodels.panel.model.AmbiguityError[source]¶
Bases:
ExceptionError raised when the shape of the weights could mean different things.
It is raised when the numbers of time periods and of entities are equal and 1-d weights have that many values, so that the weights could have a value for each time period or for each entity.