Set up workspace

library(dplyr)
## 
## Attaching package: 'dplyr'
## The following objects are masked from 'package:stats':
## 
##     filter, lag
## The following objects are masked from 'package:base':
## 
##     intersect, setdiff, setequal, union
library(psych)
knitr::opts_chunk$set(echo = TRUE)
rm(list=ls())

1.8

  1. What does each row of the data matrix represent?
  1. How many participants were included in the survey?
  1. Indicate whether each variable in the study is numerical or categorical. If numerical, identify as continuous or discrete. If categorical, indicate if the variable is ordinal.

1.10

  1. Identify the population of interest and the sample in this study.
  1. Comment on whether or not the results of the study can be generalized to the population, and if the findings of the study can be used to establish causal relationships.

1.28

Based on this study, can we conclude that smoking causes dementia later in life? Explain your reasoning.

A friend of yours who read the article says, “The study shows that sleep disorders lead to bullying in school children.” Is this statement justified? If not, how best can you describe the conclusion that can be drawn from this study?

1.36

  1. What type of study is this?
  1. What are the treatment and control groups in this study?
  1. Does this study make use of blocking? If so, what is the blocking variable?
  1. Does this study make use of blinding?
  1. Comment on whether or not the results of the study can be used to establish a causal relationship between exercise and mental health, and indicate whether or not the conclusions can be generalized to the population at large.
  1. Suppose you are given the task of determining if this proposed study should get funding. Would you have any reservations about the study proposal?

1.48

scores <- c(57, 66, 69, 71, 72, 73, 74, 77, 78, 78, 79, 79, 81, 81, 82, 83, 83, 88, 89, 94)
boxplot(scores)

1.50

1.56

  1. Housing prices in a country where 25% of the houses cost below $350,000, 50% of the houses cost below $450,000, 75% of the houses cost below $1,000,000 and there are a meaningful number of houses that cost more than $6,000,000.
  1. Housing prices in a country where 25% of the houses cost below $300,000, 50% of the houses cost below $600,000, 75% of the houses cost below $900,000 and very few houses that cost more than $1,200,000.
  1. Number of alcoholic drinks consumed by college students in a given week. Assume that most of these students don’t drink since they are under 21 years old, and only a few drink excessively.
  1. Annual salaries of the employees at a Fortune 500 company where only a few high level executives earn much higher salaries than all the other employees.

1.70

  1. Based on the mosaic plot, is survival independent of whether or not the patient got a transplant? Explain your reasoning.
  1. What do the box plots below suggest about the efficacy (effectiveness) of the heart transplant treatment.
  1. What proportion of patients in the treatment group and what proportion of patients in the control group died?
30/34
## [1] 0.8823529
45/69
## [1] 0.6521739
  1. i What are the claims being tested?
    • Whether the treatment improves survival

ii alive on 14, dead on 75

iii From the simulated data, you wouldn’t expect such a large observed difference if the populations the experimental groups were meant to be representing (control vs treatment) actually were not different. Therefore, it’s evidence that it was the intervention that was the source of this difference.