Question: What would be the code using Rstudios bootstrap package for an example like this? A quality control engineer collects a sample of gears, examining 20

What would be the code using Rstudios bootstrap package for an example like this?

A quality control engineer collects a sample of gears, examining 20 gears from the manufacturing line. She is interested in estimating the mass of the gears, with a 93 % confidence interval. However, she is not confident in the normality of the observed data, and would like to estimate the Standard Error using the bootstrap. Using the data below, and the boot function from the boot package, with set.seed(65) for randomization, and R = 1e4 replicates, estimate the SE of the mean. Then, using the SE and the appropriate t quantile (20 - 1 df), find the 93 % confidence interval.

dat <- c(23.9, 20.13, 17.75, 19.73, 16.37, 22.48, 15.44, 17.3, 20.78, 21.36, 15.19, 25.25, 15.88, 13.24, 17.67, 20.85, 22.53, 21.92, 20.4, 18.79)

The Standard Error for X-bar:

The 93 % Confidence Interval for X-bar (Lower, then Upper):

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!