linearmodels.panel.utility.PanelModelData

class linearmodels.panel.utility.PanelModelData(data: pandas.DataFrame, weights: pandas.DataFrame, other_effects: pandas.DataFrame, clusters: pandas.DataFrame)[source]

Typed namedtuple to hold simulated panel data

Parameters:
data: pandas.DataFrame

DataFrame containing the panel model’s data

weights: pandas.DataFrame

DataFrame containing the panel model’s weights

other_effects: pandas.DataFrame

DataFrame containing the panel model’s effects, excluding time and entity effects.

clusters: pandas.DataFrame

DataFrame containing cluster ids.

Methods

count(value, /)

Return number of occurrences of value.

index(value[, start, stop])

Return first index of value.

Properties

clusters

Alias for field number 3

data

Alias for field number 0

other_effects

Alias for field number 2

weights

Alias for field number 1