Skip to content

Commit

Permalink
test that shows we're aware of weirdness and it's consistent
Browse files Browse the repository at this point in the history
  • Loading branch information
palday committed Mar 20, 2024
1 parent 7905589 commit e994dc7
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion test/mixedmodels.jl
Original file line number Diff line number Diff line change
Expand Up @@ -24,5 +24,12 @@ eff = effects(design, model)
@test eff.y - eff.err eff.lower
@test eff.y + eff.err eff.upper

# there is one bit of weirdness -- the removed coefficients behave like any other
# variable in the "design" that is missing from the model.
design = Dict(Symbol(dropped_coef) => [0])
eff = effects(design, model)
eff_dropped = effects(design, model)

design = Dict(:q => [0])
eff_not_present = effects(design, model)

@test Matrix(eff_dropped) Matrix(eff_not_present)

0 comments on commit e994dc7

Please sign in to comment.