Re: [R] lm output

2009-10-09 Thread Daniel Malter
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

Re: [R] lm output

2009-10-09 Thread Brecknock, Peter
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

Re: [R] lm output

2009-10-09 Thread David Winsemius
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

Re: [R] lm output

2009-10-09 Thread Ted Harding
> 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

Re: [R] lm output

2009-10-09 Thread Brecknock, Peter
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

Re: [R] lm output

2009-10-09 Thread Ted Harding
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

Re: [R] lm output

2009-10-09 Thread Daniel Malter
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

[R] lm output

2009-10-09 Thread Brecknock, Peter
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

Re: [R] lm() output with quantiative predictors not the same as SAS

2008-05-28 Thread Ben Bolker
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

[R] lm() output with quantiative predictors not the same as SAS

2008-05-27 Thread alicia . senauer
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