Open Arceus opened 1 year ago
Are these both pandas categorigcals?
Can you provide some more information on the structure of the data you are modeling?
I'm pulling the data from my .csv longform unbalanced panel database. When I say categorical, e.g. SupplyClass or DupeClass, I refer to an array of strings classifying each id from column "itemName" differently. I don't run into any problem using these as separated explanatory variables without creating dummies beforehand, as linearmodels recognizes them as categoricals and handles them automatically.
What size is the array? What are the entity and time indices?
I'm trying to assess the effects on "returnAvg" of the interactions between my "SupplyClass" and "DupeClass" categorical variables, but I'm not sure I'm doing it right given that I always get the following error:
Turning check_rank to True leads to Singular Matrix error.
I've tried looking into the documentation but I haven't found any answer on how to do it properly. Here's how I tried inserting the interaction terms:
model = RandomEffects.from_formula("returnAvg ~ 1 + type + Color + Items + StoreRange + SupplyClass+ DupeClass + SupplyClass*DupeClass ", data=data)