Re: [R] HELP relevel INTERCEPT-COMPARISONS

2017-10-29 Thread Michael Dewey
Dear Xavier You problem comes from using attach(). Do not do that, it usually ends in tears. Either use the data parameter to the functions which support it or look at with() and within(). On 28/10/2017 21:11, CHIRIBOGA Xavier wrote: Dear colleagues, How can I do to "relevel" the intercept

Re: [R] HELP relevel INTERCEPT-COMPARISONS

2017-10-28 Thread José María Mateos
On Sat, Oct 28, 2017 at 08:11:51PM +, CHIRIBOGA Xavier wrote: treatment<-relevel(treatment,ref="Db") Never used relevel myself, but shouldn't this line be instead this one? T1$treatment <- relevel(T1$treatment, ref = "Db") Cheers, JMM. __ R-he

[R] HELP relevel INTERCEPT-COMPARISONS

2017-10-28 Thread CHIRIBOGA Xavier
Dear colleagues, How can I do to "relevel" the intercept? I need that the treatment "Db" be the intercept, and have p-values for the comparisons with the others treatments. I used the function "relevel" but it did not work out to have what I want. Thanks for your help, Xavier T1 <- read.t