[Rd] contrasts (PR#7695)

david.clayton at cimr.cam.ac.uk david.clayton at cimr.cam.ac.uk
Fri Feb 18 13:53:11 CET 2005

Full_Name: David Clayton
Version: 2.0.1
OS: Linux
Submission from: (NULL) (

Setting contrasts for a factor to be used in a model by 

contrasts(fact, how.many) <- mat

where mat is a matrix does not coerce mat into storage mode "double". The
resultant model.matrix is garbage.

More information about the R-devel mailing list