Descriptive Statistics with Continuous and Discrete Predictors
BEFORE YOU BEGIN:
The videos below will walk you through the following .Rmd file: https://drive.google.com/file/d/1CQ0q_GslIe5qV4l3VLyh5ySc69ovIDRc/view
Be sure you already have the datafile from Ch. 9 saved.
TABLE OF CONTENTS:
10–A: Introduction and Learning Outcomes
In this module, we will be learning how to:
Recognize the difference between continuous and discrete variables.
Get descriptive statistics for for continuous and discrete variables.
Recognize what types of descriptives are appropriate for each type of variable.
Recognize what types of graphs are appropriate for each type of variable.
Create bar charts to display data.
Create scatterplots to display relationships between variables.
Video (0:42)
10-B: Installing and Loading Packages
Note that when working through the .Rmd files, R packages will often need to be installed, and libraries loaded. Do NOT quit R while installing or loading packages and libraries. This can corrupt crucial files. Instead, you can STOP the process (by clicking the red stop sign in the upper right corner of the console) and then quit the program, or wait until the process has been completed.
Video (6:37)
10-C: Dataset Information
If you need to review information about the dataset, see Chapter 8.
10-D: Descriptive Statistics for Continuous Variables
Video (15:58)
10-E: Plotting Continuous Variables
Video (16:32)
10-F: Descriptive Statistics for Discrete Variables
Video (10:01)
10-G: Plotting Discrete Variables
Video (14:26)
Test Your Knowledge
References
R version 4.1.0 (2021-05-18) -- "Camp Pontanezen". Copyright (C) 2021 The R Foundation for Statistical Computing Platform: x86_64-w64-mingw32/x64 (64-bit)
RStudio Team (2020). RStudio: Integrated Development Environment for R. RStudio, PBC, Boston, MA URL http://www.rstudio.com/.
Horst, A. Continuous vs. Discrete @ahorst https://github.com/allisonhorst License CC-BY-SA 4.0
Interested in learning more?
More R instructional guides: https://www.statology.org/r-guides/ © 2021 Statology