---
title: "PSYC40014 Supplementary Exam 2022"
author: 'Your name, your student id [Word count: XX]'
output:
  html_document:
    df_print: paged
  word_document: default
---

# Exam details

**Available:** 18 July 2022 at 8am

**Due:** 21 July 2022 at 11:59pm

**Questions:** 30

**Word count:** 2000


```{r setup, include=FALSE}
# We'll begin by loading up the libraries and data we need, as always.
# You don't need to change anything in this code chunk.
knitr::opts_chunk$set(echo = TRUE)

# loading the libraries
library(tidyverse)
library(here)
library(ggplot2)
library(lsr)
library(car)
library(RColorBrewer)

df <- read_csv(file=here("punk.csv"))
df$singer <- as.factor(df$singer)
df$location <- as.factor(df$location)
dq <- read_csv(file=here("quackers.csv"))
dq$day <- as.factor(dq$day)
dm <- read_csv(file=here("meatballs.csv"))
dm$season <- as.factor(dm$season)
dm$season <- factor(dm$season, levels=c("winter","spring","summer","autumn"))
dl <- read_csv(file=here("leaders.csv"))
dd <- read_csv(file=here("adventurers.csv"))
dd$person <- as.factor(dd$person)

```

# Punk music

## Q1 [3 marks]

```{r q1}

```

## Q2 [6 marks]

```{r q2}

```

*ANSWER: Answer goes here [Word count: N]*

# Fun with Quackers

## Q3 [7 marks]

```{r q3}

```

*ANSWER: Answer goes here [Word count: N]*

## Q4 [6 marks]

```{r q4a}

```

*Q4(a) ANSWER: Answer goes here [Word count: N]*

```{r q4b}

```

*Q4(b) ANSWER: Answer goes here [Word count: N]*

```{r q4c}

```

*Q4(c) ANSWER: Answer goes here [Word count: N]*

```{r q4d}

```

*Q4(d) ANSWER: Answer goes here [Word count: N]*

## Q5 [5 marks]

```{r q5}

```

*ANSWER: Answer goes here [Word count: N]*

# Psychology

## Q6 [3 marks]

```{r q6}
psychTable <- rbind(c(4,2),c(3,5))
row.names(psychTable) <- c("bunny","foxy")
colnames(psychTable) <- c("act","cbt")

```

*ANSWER: Answer goes here [Word count: N]*

## Q7 [2 marks]

```{r q7}

```

## Q8 [2 marks]

```{r q8}

```

*ANSWER: Answer goes here [Word count: N]*

## Q9 [4 marks]

```{r q9}

```

*ANSWER: Answer goes here [Word count: N]*


## Q10 [4 marks]

```{r q10}

```

*ANSWER: Answer goes here [Word count: N]*

# New leaders

## Q11 [4 marks]

```{r q11}

```

*ANSWER: Answer goes here [Word count: N]*

## Q12 [5 marks]

**Q12a**

```{r q12}

```

*ANSWER: Answer goes here [Word count: N]*

**Q12b**.

*ANSWER: Answer goes here [Word count: N]*


## Q13 [6 marks]

```{r q13}

```

*ANSWER: Answer goes here [Word count: N]*


# Adventurers

## Q14 [1 marks]

```{r q14}

```

*ANSWER: Answer goes here [Word count: N]*

## Q15 [7 marks]

```{r q15}

```

*ANSWER: Answer goes here [Word count: N]*

## Q16 [5 marks]

**Q16a**.

*ANSWER: (i) ___ (ii) ___*

**Q16b**.

*ANSWER: (i) Answer goes here (ii) Answer goes here [Word count: N]*

## Q17 [4 marks]

**Q17a**.

*ANSWER: (i) ___ (ii) ___ (iii) ___ (iv) ___*

**Q17b**.

*ANSWER: (i) Answer goes here (ii) Answer goes here (iii) Answer goes here (iv) Answer goes here [Word count: N]*


## Q18 [2 marks]

*ANSWER: [Word count: N]*


## Q19 [3 marks]

*ANSWER: A. ___ B. ___ C. ___ D. ___ E. ___ F. ___ *


## Q20 [2 marks]

```{r q20}

```

*ANSWER:  People in the ______ group had _____ times the risk of disease of people in the _____ group. *

## Q21 [2 marks]

**Q21a**.

*ANSWER: ___ *

**Q21b**.

*ANSWER:  [Word count: N]* 

## Q22 [2 marks]


```{r q22}

```

*ANSWER:  Lower Bound of 95% Confidence Interval: ____. Upper Bound of 95% Confidence Interval: ____ *

## Q23 [1 mark]


```{r q23}

```

*ANSWER: To reach the desirable standard I estimate that the revised test will need to have ___ items in total. *


## Q24 [2 marks]

*ANSWER: [Word count: N] * 


## Q25 [4 marks]

**Q25a**. What is the test sensitivity? 

```{r q25a}

```

*ANSWER: _____* 

**Q25b**. What is the test specificity?  

```{r q25b}

```

*ANSWER: _____* 

**Q25c**. What is the test Positive Predictive Power? 

```{r q25c}

```

*ANSWER: _____* 

**Q25d**. What is the test Negative Predictive Power? 

```{r q25d}

```

*ANSWER: _____* 

## Q26 [2 marks]

*ANSWER: [Word count: N]* 

## Q27 [1 mark]

*ANSWER: We should prefer _____.*

## Q28 [1 mark]

*ANSWER: [Word count: N]* 

### Q29 [3 marks]

**Q29a**.

*ANSWER: [Word count: N]* 
 
**Q29b**.

*ANSWER: [Word count: N]*


## Q30 [1 mark]

*ANSWER: * 


# END OF EXAM