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
Multiple regression Categorical data
3 messages · Rosario Garcia Gil, Greg Snow, David Winsemius
?contr.sum On Fri, May 11, 2012 at 8:13 AM, Rosario Garcia Gil
<M.Rosario.Garcia at slu.se> wrote:
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
______________________________________________ R-help at r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.
Gregory (Greg) L. Snow Ph.D. 538280 at gmail.com
On May 11, 2012, at 9:13 AM, Rosario Garcia Gil wrote:
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.
Yes. ?contrasts
David Winsemius, MD Heritage Laboratories West Hartford, CT