inst/snippets/Figure3.16.R

# Now we'll do it 1000 times
Bootstrap <- do(1000) * mean( ~Time, data = resample(CommuteAtlanta))
head(Bootstrap, 3)
# We should check that that our bootstrap distribution has an appropriate shape:
dotPlot( ~ mean, width = 0.005, data = Bootstrap)
rpruim/Lock5withR documentation built on May 28, 2019, 1:31 a.m.