Scientists seek to answer questions using rigorous methods and
careful observations. These observations - collected from the likes of
field notes, surveys, and experiments - form the backbone of a
statistical investigation and are called data. Statistics is the study
of how best to collect, analyze, and draw conclusions from data. It is
helpful to put statistics in the context of a general process of
- Identify a question or problem.
- Collect relevant data on the topic.
- Analyze the data.
- Form a conclusion.
In this tutorial, we focus on steps 1 and 2 of this process.
- Internalize the language of data.
- Load and view a dataset in R and distinguish between various
- Classify a study as observational or experimental, and determine
whether the study’s results can be generalized to the population and
whether they suggest correlation or causation between the variables
- Distinguish between various sampling strategies and recognize the
benefits and drawbacks of choosing one strategy over another.
- Identify the principles of experimental design and recognize their
- Apply terminology and principles to a case study.
- Load data from the textbook companion package
- Introduce data frames and tidy data
- Discuss variable types connecting terminology from textbook to
- Mutate data frames to convert data types
- Numerical to categorical conversion
- Filtering and then drop levels
- Combine levels of categorical
- Create new variable based on two existing variables (e.g. BMI)
- Define observational studies and experiments
- Discuss scope of inference 2x2 grid with random assignment and
- Define Simpson’s paradox in a 2 cat var case
- Use R to make a contingency table
group_by() third variable and make table again to
demonstrate Simpson’s paradox
Define simple random sample, stratified sample, cluster sample,
Use R to obtain SRS and stratified sample
Discuss benefits and drawbacks of choosing one sampling scheme
Identify the principles of experimental design
Discuss the purpose of each principle
Use R to do random assignment and random assignment after
- Apply terminology, principles, and R code learned in this tutorial
to a case study