elp@r-project.org
Betreff: RE: [R] lm output
Daniel
Thanks very much for the reply.
If the data fails the underlying assumptions of regression wouldn't it make
sense to suppress all the output and not just the slope coefficient?
Incidently, if I run this simple example in Excel it returns the
Fair point.
Thanks.
-Original Message-
From: David Winsemius [mailto:dwinsem...@comcast.net]
Sent: Friday, October 09, 2009 5:02 PM
To: Brecknock, Peter
Cc: Daniel Malter; r-help@r-project.org
Subject: Re: [R] lm output
On Oct 9, 2009, at 5:45 PM, Brecknock, Peter wrote:
> Dan
dx=0.
--
David.
Kind regards
Pete
-Original Message-
From: Daniel Malter [mailto:dan...@umd.edu]
Sent: Friday, October 09, 2009 4:24 PM
To: Brecknock, Peter; r-help@r-project.org
Subject: AW: [R] lm output
That comes out as an NA because X'X is not invertible because it is
not full
> Sent: Friday, October 09, 2009 4:24 PM
> To: Brecknock, Peter; r-help@r-project.org
> Subject: AW: [R] lm output
>
> That comes out as an NA because X'X is not invertible because it is not
> full
> rank (one row/column is a linear combination of the other(s)). And th
sense to me ... the best estimate of y would be its
mean for any value of x.
Kind regards
Pete
-Original Message-
From: Daniel Malter [mailto:dan...@umd.edu]
Sent: Friday, October 09, 2009 4:24 PM
To: Brecknock, Peter; r-help@r-project.org
Subject: AW: [R] lm output
That comes out as
On 09-Oct-09 21:12:18, Brecknock, Peter wrote:
> Hi All
> I am running a linear regression using the lm object.
>
> In the event that my independent variable is the same across all
> observations the regression slope is returned as an NA.
>
> For example, if I have the following
>
> y=c(10,12,1
g] Im
Auftrag von Brecknock, Peter
Gesendet: Friday, October 09, 2009 5:12 PM
An: r-help@r-project.org
Betreff: [R] lm output
Hi All
I am running a linear regression using the lm object.
In the event that my independent variable is the same across all
observations the regression slope is returned
Hi All
I am running a linear regression using the lm object.
In the event that my independent variable is the same across all
observations the regression slope is returned as an NA.
For example, if I have the following
y=c(10,12,17)
x=c(5,5,5)
lm = lm(y~x)
produces the following
Coefficient
yale.edu> writes:
>
> I am trying to use R lm() with quantitative and qualitative predictors, but am
> getting different results than those that I get in SAS.
>
> In the R ANOVA table documentation I see that "Type-II tests corresponds to
> the
> tests produced by SAS for analysis-of-variance
I am trying to use R lm() with quantitative and qualitative predictors, but am
getting different results than those that I get in SAS.
In the R ANOVA table documentation I see that "Type-II tests corresponds to the
tests produced by SAS for analysis-of-variance models, where all of the
predictors
10 matches
Mail list logo