Re: [R] quesion about lm function

2013-03-11 Thread meng
March 10, 2013 5:33 AM >> To: Greg Snow >> Cc: R help >> Subject: Re: [R] quesion about lm function >> >> Thanks for your reply. >> But the mean y of sex(f) and sex(m) can't be negative since the min and >> max of y is 1632.5 and 6410.6 respectivel

Re: [R] quesion about lm function

2013-03-11 Thread PIKAL Petr
Hi > -Original Message- > From: r-help-boun...@r-project.org [mailto:r-help-bounces@r- > project.org] On Behalf Of meng > Sent: Sunday, March 10, 2013 5:33 AM > To: Greg Snow > Cc: R help > Subject: Re: [R] quesion about lm function > > Thanks for your reply

Re: [R] quesion about lm function

2013-03-09 Thread meng
Thanks for your reply. But the mean y of sex(f) and sex(m) can't be negative since the min and max of y is 1632.5 and 6410.6 respectively. And your code's result: sex(f): -1255.56 sex(m):-1118.73 The above result isn't correct since they are negative. Thanks At 2013-03-10 02:39:2

Re: [R] quesion about lm function

2013-03-09 Thread meng
But I don't want the original mean y ,but the "corrected mean y" of analysis of covariant. Also,the difference of original mean y is not 136.83,which is the difference of the "corrected meany". ÔÚ 2013-03-09 20:11:11£¬"R. Michael Weylandt" дµÀ£º On Sat, Mar 9, 2013 at 10:35 AM, meng

Re: [R] quesion about lm function

2013-03-09 Thread R. Michael Weylandt
On Sat, Mar 9, 2013 at 10:35 AM, meng wrote: > Hi all: > My data is in the attachment. > I want to analysis the mean difference of y between 2 sex. > > My code: > result_lm<-lm(y~factor(sex) + x1 + x2) > summary(result_lm) > > The result of "factor(sex)m" 136.83, is the mean difference of y betwe

[R] quesion about lm function

2013-03-09 Thread meng
Hi all: My data is in the attachment. I want to analysis the mean difference of y between 2 sex. My code: result_lm<-lm(y~factor(sex) + x1 + x2) summary(result_lm) The result of "factor(sex)m" 136.83, is the mean difference of y between 2 sex,and the corresponding p value is 0.07618. My quest