[R] parameterization of factor in R

From: Oana Mocila <oanaom_at_hotmail.com>
Date: Wed 28 Dec 2005 - 05:58:23 EST

Hi all,

I encountered this problem with parameterization in R:

I have two factors in a regression. how about if I want to set constraint so that for each factor, the sum of their coefficients equals to zero(instead of choosing a reference category)? for example, I have factor(variable) A(with three categories) and factor(variable) B(with 4 categories), and I want to parameterize so that the sum of the three coefficients of A = 0, and sum of the four coefficients of B = 0? I mean how to do it in R?


Donít just search. Find. Check out the new MSN Search!

R-help@stat.math.ethz.ch mailing list
https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html Received on Wed Dec 28 06:04:11 2005

This archive was generated by hypermail 2.1.8 : Fri 03 Mar 2006 - 03:41:42 EST