Prof Randi Garcia

March 19, 2018

- Write a short description of your 290 project study
- Once the free-write is over, you will

i. find two people who are both NOT in your group, and

ii. take turns describing your studies to each other.

- Projects
- Some of you need CITI training
- Next component due on Apr 2 on Moodle

- HW #5 due on Friday at 5pm on Moodle
- SDS Presentation of the major
- Tuesday, March 20th, noon in Ford 240
- Food will be served!

- Exam 1 discussion
- Mid-Semester Assessment
- ANOVA for the BF[1] Design in R
- The BF[2] design

- Great job!
- Median = 93, Mean = 91.06, sd = 7.33
- Lots of trouble on the first question about the donuts. It was a BF[1] design, but many thought it was CB[1].

```
min Q1 median Q3 max mean sd n missing
67 89 93 95 100 91.0625 7.330614 32 0
```

It seems natural to think that adding the right vitamins to a pig's diet might produce fatter pigs faster. You've decided to study the effects of B12 in two doses (0mg and 5mg). But pigs have bacteria living in their intestines that might prevent the uptake of vitamins, so you decided to give antibiotics to the pigs in one of two doses (0mg or 40 mg). You design your experiment in such a way that 3 piglets are randomly assigned to each of the 4 treatment conditions. You measure their weight every day, and take each pig's average daily weight gain as your final number recorded.

- Does treatment A have an effect on the response variable?
- Is there a main effect of factor 1?

- Does treatment B have an effect on the response variable?
- Is there a main effect of factor 2?

- Does being in a specific combination of treatments have an effect over and above the additive effects of treatment A and B alone?
- Is there an interaction between factor 1 and factor 2?

Mantra: An interaction is present if the effect of one factor is different across levels of the other factor.

For each of the following interaction graphs, answer the following questions with **YES** or **NO**.

- Is there a main effect of B12?
- Is there a main effect of antibiotics?
- Is there an interaction between B12 and antibiotics?

- YES
- YES
- YES

- NO
- NO
- YES

- YES
- YES
- NO