[ ] nesting is quite inefficient. Improvement to speed needed. Perhaps a "sparse" representation is needed instead of encoding each level as its own node.
[x] need to switch this to using nestr instead
Question: should .distinct = TRUE by default? This default is opposite nestr. The two have different purposes, however. It is reasonable to assume that the unit labels should be distinct in experimental design but if using nestr, the user purpose is likely different and so probably want .distinct = FALSE there. If the users want distinct, it is easy enough to just use split anyway so it doesn't make sense to use nestr.
nestr
insteadQuestion: should
.distinct = TRUE
by default? This default is oppositenestr
. The two have different purposes, however. It is reasonable to assume that the unit labels should be distinct in experimental design but if usingnestr
, the user purpose is likely different and so probably want.distinct = FALSE
there. If the users want distinct, it is easy enough to just usesplit
anyway so it doesn't make sense to usenestr
.