Question: Using R/Rstudio year length weight 2012 46 1.85 2012 51 2.2 2012 44 1.7 2012 61 3.2 2012 71 4.25 2012 29 1.25 2012 48

Using R/Rstudio

year length weight 2012 46 1.85 2012 51 2.2 2012 44 1.7 2012 61 3.2 2012 71 4.25 2012 29 1.25 2012 48 2.1 2012 48 2.1 2012 46 2.1 2012 31 1.3 2012 30 1.35 2012 32 1.35 2012 29 1.2 2012 29 1.2 2012 29 1.2 2012 28 1.2 2012 55 2.8 2012 54 2.65 2012 29 1.4 2012 48 2.15 2012 48 2 2012 47 2.2 2012 27.5 1.3 2012 27 1.3 2012 29 1.5 2012 30 1.2 2012 29 1.3 2012 34 1.5 2012 32 1.4 2012 31 1.47 2012 35 1.5 2012 32 1.55 2012 33 1.44 2012 72 5.2 2012 31.5 1.39 2012 82 6.6 2012 65 3.6 2013 47 1.57 2013 35 1.42 2013 32.5 1.34 2013 30 1.29 2013 35 1.33 2013 30.5 1.33 2013 52 1.72 2013 75 3.44 2013 80 5.56 2013 75 4.5 2013 87 6.2 2013 73 4.1 2013 53 1.58 2013 50 1.38 2012 52 1.3 2012 51.4 1.2 2012 43.4 1.2 2012 47 1.3 2012 61 2.9 2012 63.5 3.9 2012 50.7 1.1 2012 47 1.1 2012 58.4 3.3 2012 34 4.8 2012 15.5 0.4 2012 68.1 2.9 2012 84.1 6.9 2012 45.7 1 2012 52.3 0.8 2012 42 0.4 2012 48.1 1.2 2012 41.8 0.8 2012 73 3.2 2012 41.2 0.6 2012 20 2.1 2012 25 2 2012 45.4 1.1 2012 43.1 0.5 2012 74.9 5.1 2012 74.7 3.3 2012 45.4 1.1 2012 43.1 0.5 2012 74.9 5.1 2012 41.8 0.7 2012 82.6 6.6 2012 44.9 0.6 2012 45.6 1 2012 46.1 0.8 2012 45.8 0.8

There is a variable called year in the dataframe. Conduct a two-sample t-test to test that fish caught in 2013 are heavier than fish caught in 2012

[2] Provide a hypothesis statement for 0 and [2] Provide your code and output.

[2] Explain the output from the t.test() such as the p-value, t, and df.

[1] Write a concluding sentence.

Provided is code to produce a boxplot. Replace mydata with whatever you named your dataframe. boxplot(weight~year, data=mydata, names = c("2012", "2013"), las=1, ylab="Weight (kg)", cex=2, cex.lab=1.5, cex.axis=1.5)

a) [1] In the boxplot, are there any values that might cause you concern over using a t-test? Explain your reasoning.

b) [1] What is the solid black line in the middle of the grey area?

please show working, thank you!

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 Databases Questions!