[R] lm.boot function gives error
Peter Dalgaard
p.dalgaard at biostat.ku.dk
Mon Oct 29 21:14:55 CET 2007
Tom La Bone wrote:
> 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
>
I'm too lazy to install the package, but does it not help if you write
the model call as
lm(short.velocity~blood.glucose, data=thuesen)
?
--
O__ ---- Peter Dalgaard Øster Farimagsgade 5, Entr.B
c/ /'_ --- Dept. of Biostatistics PO Box 2099, 1014 Cph. K
(*) \(*) -- University of Copenhagen Denmark Ph: (+45) 35327918
~~~~~~~~~~ - (p.dalgaard at biostat.ku.dk) FAX: (+45) 35327907
More information about the R-help
mailing list