06-07 · Pig feeding and diarrhoea

Choose and justify a question and analysis using documented synthetic observations.

CSV · Dictionary · Provenance · Inspection starter · Analysis plan

Scientific context and your question

This is a hypothetical teaching study inspired by Xu, Noel, Lauridsen, Lærke & Canibe (2023). All supplied observations are synthetic; they are not the paper’s raw data or a reconstruction of its results. Source reading provides context and a design comparison, not an analysis to copy.

Choose a question about the two feeding conditions and seven-day disease occurrence. Define the risk/comparison and any adjustment or averaging population you intend to describe. Explain what the grouped observations do and do not reveal.

Recorded design

Researchers house eight pigs in each of 40 pens, arranged in five batches of eight pens. In each batch, they use a random order to assign four whole pens to each feed. Pigs stay in their assigned pen. A trained observer, who does not know which feed a pen receives, uses a predefined scoring rule to record whether each pig has any diarrhoea during seven days. Each pen contributes one count of affected pigs. A pig is counted at most once; the count is not a number of diarrhoea days or repeat episodes.

Researchers assign feed to whole pens: 20 pens per feed. They do not make 320 separate feed assignments to pigs. Pigs sharing a pen may share disease exposure, so their outcomes may be alike.

Use data-dictionary.qmd for column meanings and provenance.md for source information. You do not need private simulation parameters to choose a question.

Information to collect

Find a defensible disease definition, feeding context, plausible pen-to-pen differences and a practical outcome for a follow-up experiment. Compare the original litter/pen/challenge arrangement with the invented postweaning pen trial. Use a small number of useful sources and distinguish verified information from provisional assumptions. An inaccessible paper is not a reason to miss a milestone: use the factual case metadata and seek an accessible source or instructor clarification.

Your analytical responsibilities

  • Choose one biological question. State what you will measure or calculate, which groups or conditions you will compare, the units and the time period.
  • Draw what researchers did: how animals or groups received treatments, or how groups were selected for observation. Show which rows describe the same animal, pen or pasture group. Explain how your analysis will allow for those shared measurements.
  • Complete analysis-plan.qmd and submit it in teaching Week 10 before fitting. Choose a model for the possible outcome values and explain every term. Record your reasons, checks and later changes.
  • Write your own fitting and estimation code after the relevant methods have been taught. Class examples and package documentation can help with syntax, but your group must explain the choices for this study.
  • Compare one scientifically plausible alternative. For example, ask whether a different account of shared measurements or change over time alters the answer to the same question. Explain why you chose that comparison.
  • Show the estimate, an interval describing its uncertainty and one clearly labelled figure. Say what the estimate means for the animals or groups studied, and what remains uncertain. Label all supplied observations as synthetic.
  • Propose a feasible new experiment. Say whether researchers would assign treatments to animals, pens or pasture groups, what they would measure, and what difference would matter. Compare feasible study sizes under two sets of assumptions using prospective-planning.md.

Keep the scope manageable. Ask for help with the design or software, while explaining your own decisions. If you saw earlier complete case outputs, record that and agree a new analytical question with the instructor.

Milestones

Date Task
7 October Choose a provisional case and question.
12–18 October, calendar week 42 Revision and one-page scoping brief, capped at 2½ hours per student; no fitting.
21 October Question/design feedback and feasible information route.
28 October Audit recorded units, allocation/sampling and metadata.
4 November Confirm question and dataset; supplied data remain a fallback if another route fails.
11 November, teaching Week 10 Submit your analysis plan before fitting, then revise after feedback.
18 November morning, Unit 11 Fit your justified analysis and gather checks/alternative evidence.
18 November afternoon and 25 November Refine estimates, communication, follow-up design and reproducibility.
2 December, Unit 14 Present and discuss.

Suggested educational outputs: a one-page scoping brief, analysis plan, 3–5-page reproducible report including the main figure/follow-up design, and an 8-minute presentation plus 5 minutes of questions. Final assessment requirements and deadlines will be confirmed separately.

Working files and support

Open the group-projects workspace supplied in class. This case folder contains its unchanged CSV, dictionary, provenance, import/inspection starter, planning prompts and templates. Set the R working directory to the case folder and run starter.R; it uses readr and dplyr and prints the observed table/column summaries only. Create your own analysis script.

If computing is unavailable, after the analysis plan is submitted the instructor can supply outputs for your declared analysis. Acknowledge that support and interpret/check the outputs yourself. Generic class examples and instructor troubleshooting provide proportionate technical help without requiring unsupported model complexity. Retain a working copy of your analysis plan and record the sources/help informing your decisions.