Skip to content
Prev 276833 / 398506 Next

Interpreting Multiple Linear Regression Summary

On Nov 9, 2011, at 1:17 PM, Rich Shepard wrote:

            
Here is your problem:

# 'DF' is the result of copying your data above from the
# clipboard on OSX
DF <- read.table(pipe("pbpaste"), header = TRUE)
'data.frame':	64 obs. of  7 variables:
 $ Ca  : num  NA NA 24.4 NA 21.4 NA NA NA NA NA ...
 $ Cl  : num  1.58 5.6 3 NA 1 5 1.2 4 4 8.4 ...
 $ Cond: num  NA NA 190 187 184 NA NA NA NA NA ...
 $ Mg  : num  NA NA 10 NA 9.1 NA NA NA NA NA ...
 $ Na  : int  NA NA NA NA NA NA NA NA NA NA ...
 $ SO4 : num  9.4 6.5 9 NA 7 55 6.8 105 15.6 8.4 ...
 $ TDS : int  105 181 112 144 114 308 96 430 108 108 ?
Ca Cl Cond Mg Na SO4 TDS
22 28  1  248 11  4  13 125


After removing incomplete records (any records with NA values) which is the default behavior for R model functions, you only have one record left to fit the model to.

HTH,

Marc Schwartz