linearmodels.panel.data.PanelData.dummies

PanelData.dummies(group='entity', drop_first=False)[source]

Generate entity or time dummies

Parameters
group{“entity”, “time”}

Type of dummies to generate

drop_firstbool

Flag indicating that the dummy column corresponding to the first entity or time period should be dropped

Returns
DataFrame

Dummy variables

Return type

DataFrame