# Load the quail dataset
data(quail)
# Bootstrap for the difference of various basic statistics
# Increase R for real-world applications
bootres <- bootstrap(quail, statistic = calcstatdif, R=200)
bootres
# Arrange the results as a data frame
ci2df(bootres)
# Bootstrap for the differences of quantiles
bootresq <- bootstrap(quail, statistic = calcquantdif, R=200)
bootresq
# Arrange the results as a data frame
ci2df(bootresq)
Run the code above in your browser using DataLab