Question: What would the code be on RStudios with the package boot for an example like this? We are interested in how closely the bootstrap percentile-based
What would the code be on RStudios with the package "boot" for an example like this?
We are interested in how closely the bootstrap percentile-based confidence interval and the parametric (t) confidence interval match. Given the data below, estimate 95 % confidence intervals both ways, for the mean (X-bar). Use R = 1e4 replicates and set.seed(109).
dat <- c(3.7, 7.9, 4.9, 5.1, 0.7, 5, 6.2, 5.3, 4.4, 4.8, 4.5, 7.6, 1, 5.4, 1.6, 2.4)
The 95 % Bootstrap Percentile Confidence Interval:
The 95 % Parametric (t) Confidence Interval:
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
