Quantcast
Channel: Active questions tagged python - Stack Overflow
Viewing all articles
Browse latest Browse all 14215

how to fix FIxed effect model?

$
0
0

"The index on the time dimension must be either numeric or date-like" This mistake appears when i try to set up fixed effect within model and random effect model.

Ive got a panel data which contain year price cost and such numerical-only variables.

import pandas as pdfrom linearmodels.panel import PanelOLS

df = pd.DataFrame()

within_model = PanelOLS.from_formula('cost ~ RPM + price + load + EntityEffects', data=df)result = within_model.fit()

print(result)


Viewing all articles
Browse latest Browse all 14215

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>