[R] lm.boot function gives error

Tom La Bone booboo at gforcecable.com
Mon Oct 29 20:56:53 CET 2007


When I run this calculation

  library(ISwR)
  library(simple.boot)
  data(thuesen)
  fit <- lm(thuesen$short.velocity~thuesen$blood.glucose)
  summary(fit)
  fit.sb <- lm.boot(fit,R=1000,rows=F)
  summary(fit.sb)

I get the following error from the lm.boot routine:

  newdata' had 100 rows but variable(s) found have 24 rows

I don't know what this error means. Also, this example is not vastly
different than the one given in the simple.boot documentation and yet I
can't get it to run. Any suggestions? Thanks.

Tom

-- 
View this message in context: http://www.nabble.com/lm.boot-function-gives-error-tf4714183.html#a13475530
Sent from the R help mailing list archive at Nabble.com.



More information about the R-help mailing list