Skip to content
Prev 51647 / 398500 Next

problem with model.matrix

On Fri, 25 Jun 2004, Berwin A Turlach wrote:

            
Here is the reason (NEWS for 1.9.0)

    o	contrasts() turns a logical variable into a factor.  This now
	always has levels c("FALSE", "TRUE") even if only one (or
	none) of these occur in the variable.