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
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
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
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
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
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
6 matches
Mail list logo