-
Notifications
You must be signed in to change notification settings - Fork 10
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
effects() wrapper throws error if an event has missing factor levels #157
Comments
ah now get it. Thanks for reporting. I will check if this is our mistake or of Effects.jl :-) |
It is possible to work around this. The event type that has the missing factor has to parameterised with a different factor that completely omits the missing level instead of with the original factor. |
mh ok, I tried to cook it up and noticed I missunderstood something.
(so not the full 2x2 design), and you run your model and calculate effects, that you get output for the full 2x2 design? |
It's a bit more complicated. I have a design with two events. One event has the fully-crossed design (in my case 2 x 3). The other event has the same factors, just that the level for one of the factors doesn't make sense for that event, so for this other event the design is actually 2 x 2. I used the same model formula for both events |
effects()
tries to return the effects for a fully-crossed design. If a cell of the design is missing, i.e. design not fully crossed,effects()
throws the error:ERROR: KeyError: key "missingfactorlevel" not found
Instead of trying to return effects for the fully-crossed design of the factors specified in its input Dict,
effects()
should return only the effects actually present in the model.The text was updated successfully, but these errors were encountered: