> I think that it would be better to handle factors, character predictors, and > logical predictors consistently.
"logical predictors" can be regarded as categorical or continuous (i.e. 0 or 1). And the model matrix should be the same, either way. I think the first question to be asked is, which is the best approach, categorical or continuous? The continuous approach seems simpler and more efficient to me, but output from the categorical approach may be more intuitive, for some people. I note that the use factors and characters, doesn't necessarily produce consistent output, for $xlevels. (Because factors can have their levels re-ordered). ______________________________________________ R-devel@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-devel