or run

npx @tessl/cli init
Log in

Version

Tile

Overview

Evals

Files

Files

docs

diagnostics.mdindex.mdml-models.mdols-models.mdpanel-models.mdprobit-models.mdregime-models.mdspatial-error-models.mdsur-models.mdtsls-models.mdutilities.md

panel-models.mddocs/

0

# Panel Models

1

2

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

3

4

## Capabilities

5

6

### Fixed Effects Panel Models

7

8

```python { .api }

9

class Panel_FE_Error:

10

def __init__(self, y, x, w, epsilon=0.0000001, hard_bound=False, vm=False,

11

name_y=None, name_x=None, name_w=None, name_ds=None,

12

latex=False):

13

"""

14

Fixed effects panel spatial error model.

15

16

Parameters:

17

- y (array): Dependent variable (stacked by time periods)

18

- x (array): Independent variables

19

- w (sparse matrix): Spatial weights matrix

20

"""

21

22

class Panel_FE_Lag:

23

def __init__(self, y, x, w, epsilon=0.0000001, hard_bound=False, vm=False,

24

name_y=None, name_x=None, name_w=None, name_ds=None,

25

latex=False):

26

"""Fixed effects panel spatial lag model."""

27

```

28

29

### Random Effects Panel Models

30

31

```python { .api }

32

class Panel_RE_Error:

33

def __init__(self, y, x, w, epsilon=0.0000001, hard_bound=False, vm=False,

34

name_y=None, name_x=None, name_w=None, name_ds=None,

35

latex=False):

36

"""Random effects panel spatial error model."""

37

38

class Panel_RE_Lag:

39

def __init__(self, y, x, w, epsilon=0.0000001, hard_bound=False, vm=False,

40

name_y=None, name_x=None, name_w=None, name_ds=None,

41

latex=False):

42

"""Random effects panel spatial lag model."""

43

```