From e994dc782ea61976ea3d0e0a0e78e089a8c959c8 Mon Sep 17 00:00:00 2001 From: Phillip Alday Date: Tue, 19 Mar 2024 22:32:55 -0500 Subject: [PATCH] test that shows we're aware of weirdness and it's consistent --- test/mixedmodels.jl | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/test/mixedmodels.jl b/test/mixedmodels.jl index 9c7fd5b..8b194d5 100644 --- a/test/mixedmodels.jl +++ b/test/mixedmodels.jl @@ -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)