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

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Mathematics Questions!