Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Can someone help with questions a, b, and c using RStudio? Thanks! 1. Load the R package MASS by typing library(MASS). Type cabbages to check

Can someone help with questions a, b, and c using RStudio? Thanks!

image text in transcribed

1. Load the R package MASS by typing library(MASS). Type cabbages to check the data set. Type ?cabbages to see the variable information. 1. How many observations are in the data set? > library(MASS) > attach(cabbages) > dim(cabbages) [1] 604 There are 60 observations in the data set 2. How many variables are in the data set? > ncol (cabbages) [1] 4 There are 4 variables in the data set 3. What is the type of HeadWt variable? > class(cabbage=$Headwt) [1] "numeric" It is a numeric type 4. Find five-number summary for HeadWt variable. > summary (cabbages $Headwt) Min. 1st Qu. Median Mean 3rd Qu. 1.000 1.875 2.550 2.593 3.125 Max. 4.300 a. Are there any outliers in Headwt variable? b. Find 95% confidence interval to estimate the population mean of weight of the cabbage head (Headwt). Interpret the confidence interval you found. c. The researcher wants to prove the population mean of weight of the cabbage head is heavier than 2.5 (kg). State the null and alternative hypothesis. Perform the hypothesis test and make your decision based on comparing p-value to 0.05. Make a final conclusion

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

Financial Markets And Institutions

Authors: Anthony Saunders, Marcia Cornett

5th Edition

0078034663, 978-0078034664

More Books

Students also viewed these Finance questions

Question

What do you need to know about motivation to solve these problems?

Answered: 1 week ago