Closed benthestatistician closed 6 years ago
The problem appears to have similar causes to those described in comments on #60, namely processing of exclude-intercept directives given to model.matrix. I thought I eliminated those in addressing that issue, but perhaps I didn't, or perhaps we regressed . Tests introduced in the process of resolving that issue ([master 5ffd819]) may be useful as starting points for regression tests of an eventual fix for this. Those tests were removed in [master 2672306], quite likely mistakenly.
[master 235a1a4] adds some tests, but not corresponding fixes. Tests of the broken functionality are for the moment commented out.
(It turns out that the tests that were earlier removed in [master 2672306] weren't necessarily removed inadvertently, as that commit made them no longer applicable. [master 235a1a4] adapts those previously omitted tests and then restores them.)
A good place to make the fix would be inside of design_matrix()
(in file Design.R), close to the spot where intercepts get removed.
Here's what we need to fix:
The rows of the output should be as in this example:
The underlying problem lies in
makeDesigns
: