Re: [R] Help with contrasts

2011-05-11 Thread Guelman, Leo
r-help-boun...@r-project.org [mailto:r-help-boun...@r-project.org] On Behalf Of peter dalgaard Sent: 2011, May, 11 7:31 AM To: Lars Bishop Cc: R-help@r-project.org Help Subject: Re: [R] Help with contrasts On May 11, 2011, at 12:51 , Lars Bishop wrote: > Hi, > > I need to build a funct

Re: [R] Help with contrasts

2011-05-11 Thread peter dalgaard
On May 11, 2011, at 12:51 , Lars Bishop wrote: > Hi, > > I need to build a function to generate one column for each level of a factor > in the model matrix created on an arbitrary formula (instead of using the > available contrasts options such as contr.treatment, contr.SAS, etc). > > My approa

[R] Help with contrasts

2011-05-11 Thread Lars Bishop
Hi, I need to build a function to generate one column for each level of a factor in the model matrix created on an arbitrary formula (instead of using the available contrasts options such as contr.treatment, contr.SAS, etc). My approach to this was first to use the built-in function for contr.tre

[R] Help with contrasts

2009-01-07 Thread Paschal
Hello All R Gurus I'm a relatively new user to R and I'm having so problems fully grasping the contrasts notion. So any help will be appreciated. Lately I've been playing around with lme and I was looking at the help files of anova.lme where there is this example options(contrasts = c("contr.tr

[R] help with contrasts for a binomial 3-way GLM

2008-10-31 Thread Susana Zuloaga
Hi I am a new user the R and I am very grateful for all your help but... I have a problem and I can't resolve yet. I am trying to get the contrasts for a binomial 3-way GLM (T= 4 temperature, t= 2 time and c= 2 substrate levels, plus treatment control) in total they are 17 treatments.