Why don't you start from Kabacoff's page on bootstrapping. There is an example on how to compute 95% bootstrap CI for model estimates.
http://www.statmethods.net/advstats/bootstrapping.html
HTHCode:## From Kabacoff's page library(boot) # function to obtain regression bootstrap<- function(formula, data, indices) { d <- data[indices,] # allows boot to select sample fit <- lm(formula, data=d) return(coef(fit)) } # bootstrapping with 1000 replications results <- boot(data=test, statistic=bootstrap, R=1000, formula=y~x) # Get 95% confidence interval for the slope boot.ci(results, type="bca", index=2) ## for the slope





Reply With Quote
