Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Can anyone help me with these? Need using R studio Show the code please. Thank you fornish 5.1 WW 3.2 WW 11.9 WW 8.6 WW

Can anyone help me with these?

Need using R studio

Show the code please.

Thank you

image text in transcribedimage text in transcribedimage text in transcribed
\fornish 5.1 WW 3.2 WW 11.9 WW 8.6 WW -2 WW -1.9 WW -5 WW 2.1 WW 8.1 WW 5.2 WW 2.5 WW 5.4 WW 3.1 WW 3.7 WW 3.5 WW 3.7 WW 10.3 WW 11 WW 6 WW 1.9 WW 9.8 WW 16.5 WW -4.5 WW 2.6 WW 12.9 WW -1.4 WW 2.2 Zone 2.1 Zone 4.2 Zone -4.1 Zone -4.5 Zone 8.7 Zone 1.5 Zone -0.9 Zone 13.3 Zone -5 Zone 1.2 Zone 13.9 Zone 7.8 Zone 14.9 Zone 1.2 Zone 11.1 Zone 14.8 Zone -1.2 Zone 1.3 Zone 4.53. Recall the popular diets data set (PopularDiets.csv) that we have used before. A new data set called PopularDietsCombined.csv has been created. It only contains observations for participants that completed the study, and it only contains the two variables WTLossKG (weight loss in kilograms) and Diet. 3) b) g) h) Read in the data and make a quick boxplot to refresh your memory that there did not seem to be much difference in weight loss by diet. This read statement is included in HomeworkSTemplate.Rmd. Use the boxplot function in base R to get a quick comparative boxplot of weight loss by diet. No need to write anything here. Since there does not seem to be too much difference by diet type, we will only work WTLossKG. What is the point estimate for mean weight loss across all diets? Using all 93 observations across all diets, create 1000 bootstrapped samples. Display a histogram of bootstrapped distribution for mean weight loss. Describe the shape of the distribution. Report the 95% bootstrap condence interval and provide an interpretation of this interval in the context of the problem. Use set. . seed (12). Report the 90% and 99% bootstrap condence intervals 'om the same bootstrap sample. How do these intervals compare with the 95% interval reported in part (d)? If you redraw your bootstrap samples, use set . seed (12) before each set of draws. If you drew a different set of 1000 bootstrap samples and calculated the 95% bootstrap condence interval, how do you think the new interval will compare with the interval reported in part ((1)? Answer this before doing part (g) below. This question will only be graded for effort. Draw two new sets of 1000 bootstrap samples using the 93 observations and report the 95% bootstrap condence intervals for each (do NOT plot the two new bootstrap distributions and do NOT use set . seed). Do these intervals support what you wrote for part (1)? Explain. If you drew smaller sized bootstrap samples and calculated the 95% bootstrap condence interval, how do you think the new intervals would compare with the interval reported in part (d)? Answer this before doing part (i) below. This question will only be graded for effort. Use set. seed (12) and draw three smaller sets (n = 500, 100, and 10) of bootstrap samples using the 93 observations (before to reset the seed before each bootstrap draw). Report the 95% bootstrap condence intervals for each of these new sets. Do these intervals support what you wrote for part (h)? Explain

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Calculus

Authors: Laura Taalman, Peter Kohn

1st Edition

1464153035, 9781464153037

More Books

Students also viewed these Mathematics questions

Question

Why do mergers and acquisitions have such an impact on employees?

Answered: 1 week ago

Question

2. Describe the functions of communication

Answered: 1 week ago