Question: The assessment requires work with RStudio, as I cannot upload the excel sheet, I have included the RStudio output in the questions. Background Lamb birth
The assessment requires work with RStudio, as I cannot upload the excel sheet, I have included the RStudio output in the questions.
Background
Lamb birth weight is the single largest influence on survival of lambs in the first few days of life. In a trial at Massey University in the late 1990s, 160 mixed-aged, Coopworth pregnant female sheep (ewes) were randomly allocated to an experiment involving two shearing treatments (shorn on day 70 vs not shorn) andfour feeding regimes (HH, HM, MH, MM). The first letter refers to feed during days 70-101 of pregnancy, and the second during days 102-140. The M (maintenance) feeding group were fed at a level calculated to maintain maternal conceptus-free weight, while the H (high) feeding group were fed to gain around 100g per day above this during the relevant period.
After each lamb was born, its birthweight was recorded, as well as its rank (whether it was a single or twin).
The data are in the Excel file lambs.xlsx.
Use the data to answer the following questions in the spaces provided.You can re-size the answer spaces.
Use RStudio and incorporate the output into your answers.
Part A: Comparing means: Analysis of birthweight according to shearing treatment [30 marks]
A1: Use RStudio to draw side-by-side boxplots of birthweights for the lambs according to shearing treatment. Paste your graph below. [3 marks]


birthweight of lambs by shearing treatment brithweight LO pot- shorn unshorn shearing treamentWeight (kg) Shorn Unshorn Minimum 1.5 2.6 Lower 4.5 4.3125 Quartile Median 5.2 5.0 Mean 5. 122353 4.919902 Upper 5.75 5.3875 Quartile Maximum 7.5 7.25
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
