Skip to content

contrasts (PR#7695)

2 messages · David Clayton, Brian Ripley

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


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.
#
Do you have an example we can use to test a fix?  I can only guess at what 
you supplied for `mat'.

R doesn't really have `storage mode': and "single" should be fine.
I guess (but only guess) you had an integer matrix.
On Fri, 18 Feb 2005 david.clayton@cimr.cam.ac.uk wrote: