CtrlK
BlogDocsLog inGet started
Tessl Logo

tessl/pypi-spreg

Spatial econometric regression models for analyzing geographically-related data interactions.

Overall
score

87%

Overview
Eval results
Files

panel-models.mddocs/

Panel Models

Fixed effects and random effects panel data models with spatial error and lag specifications for analyzing spatially-correlated panel datasets.

Capabilities

Fixed Effects Panel Models

class Panel_FE_Error:
    def __init__(self, y, x, w, epsilon=0.0000001, hard_bound=False, vm=False,
                 name_y=None, name_x=None, name_w=None, name_ds=None, 
                 latex=False):
        """
        Fixed effects panel spatial error model.
        
        Parameters:
        - y (array): Dependent variable (stacked by time periods)
        - x (array): Independent variables
        - w (sparse matrix): Spatial weights matrix
        """

class Panel_FE_Lag:
    def __init__(self, y, x, w, epsilon=0.0000001, hard_bound=False, vm=False,
                 name_y=None, name_x=None, name_w=None, name_ds=None,
                 latex=False):
        """Fixed effects panel spatial lag model."""

Random Effects Panel Models

class Panel_RE_Error:
    def __init__(self, y, x, w, epsilon=0.0000001, hard_bound=False, vm=False,
                 name_y=None, name_x=None, name_w=None, name_ds=None,
                 latex=False):
        """Random effects panel spatial error model."""

class Panel_RE_Lag:
    def __init__(self, y, x, w, epsilon=0.0000001, hard_bound=False, vm=False,
                 name_y=None, name_x=None, name_w=None, name_ds=None,
                 latex=False):
        """Random effects panel spatial lag model."""

Install with Tessl CLI

npx tessl i tessl/pypi-spreg

docs

diagnostics.md

index.md

ml-models.md

ols-models.md

panel-models.md

probit-models.md

regime-models.md

spatial-error-models.md

sur-models.md

tsls-models.md

utilities.md

tile.json