linearmodels.panel.model.RandomEffects.reformat_clusters

RandomEffects.reformat_clusters(clusters)

Reformat cluster variables

Parameters:
clusters : array_like

Values to use for variance clustering

Returns:

Original data with matching axis and observation dropped where missing in the model data.

Return type:

PanelData

Notes

This is exposed for testing and is not normally needed for estimation