search for: thiscolumn

Displaying 1 result from an estimated 1 matches for "thiscolumn".

Did you mean: this_column
2007 Jan 26
1
bootstrap bca confidence intervals for large number of statistics in one model; library("boot")
...whichrows,] thisLM<-lm( y~poly(x,2), data=TheseData) thisFit<-predict(thisLM, newdata=NEWDATA) c( coef(summary(thisLM))[,"Estimate"] , thisFit) } bootObj<-boot( data=DAT, statistic=myfn, R=1000 ) names(bootObj) dim(bootObj$t) sofar<-t(sapply( 1:ncol(bootObj$t), function(thiscolumn) boot.ci(bootObj, type='bca', index=thiscolumn)$bca[4:5] )) colnames(sofar)<-c("lo", "hi") NEWDATA<-cbind(NEWDATA, sofar[4:nrow(sofar),]) thecoefs<-sofar[1:3,] lines( NEWDATA$x, NEWDATA$lo, col='red') lines( NEWDATA$x, NEWDATA$hi, col='red') Not...