x= seq(from=0, to=20, by=0.1), y= 200+ 2x -0.2(x-10)^2 +rnorm(legth(x), mean=10, sd=20), dat= data.frame(x,y), ggplot( data=dat, aes(x=x, y=y)) +geom_point()+ geom_smooth(formula=y~x+x^2) +labs(title="Quadratic model"), m = lm(y~x+I(x^2), data= dat), boot = lm.boot(m, R=1000), s= samples(boot, "coef"), par(mfrow=c(1,3)), hist(s[1,], breaks=20, col="blue"), hist(s[2,], breaks=20, col="blue"), hist(s[3,], breaks=20, col="blue")