Skip to content

Multiple regression Categorical data

3 messages · Rosario Garcia Gil, Greg Snow, David Winsemius

#
Hello

It is possible to set up an lm() model where none of the categories of the categorical independent variable need to be used as references, I mean use the total mean instead.

Thanks 
/R
#
?contr.sum

On Fri, May 11, 2012 at 8:13 AM, Rosario Garcia Gil
<M.Rosario.Garcia at slu.se> wrote:

  
    
#
On May 11, 2012, at 9:13 AM, Rosario Garcia Gil wrote:

            
Yes.

?contrasts