Hi!
I have an external ‘ModelFrame’ that was created like this:
sch = schema(model, data, contrasts)
f = apply_schema(model, sch, StatisticalModel)
mf = ModelFrame(f, sch, data, StatisticalModel)
I know nothing about model, data and contrasts. I try to apply the same schema to other dataframe:
mf = ModelFrame(mf.f, mf.schema, data2, StatisticalModel)
mm = ModelMatrix(mf)
Expectedly an error occurred:
ERROR: KeyError: key "5" not found ...
Is any way to do this some way? (main problem - no information about contrasts)