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)

Try the Lock5withR package in your browser

Any scripts or data that you put into this service are public.

Lock5withR documentation built on May 2, 2019, 3:43 p.m.