Skip to content
Prev 310404 / 398506 Next

lm function - strange error

Can you provide a reference or link to the document?  I think that you have a misprint or a typo in it.

the na.omit is a reference to missing data that is accounted for in the vector, which would appear as NA in the data.

For example this works just fine for me
conc = c(0, 10, 20, 30, 40, 50)
signal = c (4, 22, 44, 60, 82, NA)
lm( signal ~ conc)

as does this

conc = c(0, 10, 20, 30, 40, 50)
signal = c (NA, 4, 22, 44, 60, 82)
lm( signal ~ conc)

but they give very different results.

I don't think R has changed ----someone just make typing mistake.





John Kane
Kingston ON Canada
____________________________________________________________
FREE 3D EARTH SCREENSAVER - Watch the Earth right on your desktop!