0

I wanted to add entity_effects that correspond with my column host_id, and add drop_absorbed = True to define the data.

panel_data

This is what I tried:

panel.reset_index(inplace = True)

modFE = PanelOLS(panel.price_USD2, panel[['bedrooms','beds','number_of_reviews','review_scores_rating','host_is_superhost2_x','n_listings','centrococo_d','basilica_d']], entity_effects = panel.host_id, time_effects = False, drop_absorbed = True)

resFE = modFE.fit(cov_type = 'unadjusted')

print(resFE)

However, it returned "ValueError: series can only be used with a 2-level MultiIndex" in modFE

lmes
  • 3
  • 2

0 Answers0