This lesson is still being designed and assembled (Pre-Alpha version)

Data Analysis and Visualization in R for Public Health: Glossary

Key Points

Introduction
  • First key point. Brief Answer to questions. (FIXME)

Introduction to R and RStudio
  • Use RStudio to write and run R programs.

  • R has the usual arithmetic operators and mathematical functions.

  • Use <- to assign values to variables.

  • Use ls() to list the variables in a program.

  • Use rm() to delete objects in a program.

  • Use install.packages() to install packages (libraries).

R Basics, Part 1: Data types and Functions
  • Use RStudio to write and run R programs.

  • R has the usual arithmetic operators and mathematical functions.

  • Use c() to construct a vector

  • Use <- to assign values to variables.

  • Use ls() to list the variables in a program.

  • Use rm() to delete objects in a program.

  • Use install.packages() to install packages (libraries).

Reading in Data
  • Learn to use read.* and related functions

  • Learn to use str()

  • Use colnames() to see a list of column names

Merging and Joining Data
  • Use merge() to stack data

  • Use merge() to join data

  • Understand joins

Selecting and Renaming Variables, and Subsetting
  • Use select() to create a subset of a data frame based on columns

  • Use rename() to rename columns

  • Use filter() to filter rows

Exploring Continuous Data
  • Use hist() to view a histogram

  • Use boxplot()

  • Use plot() to create an X-Y scatterplot

Exploring Categorical Data
  • Use table() to calculate frequencies

  • Use … something to calculate % frequencies

  • Use barplot()

Creating summary tables
  • Use stargazer package to make beautiful tables

  • Use R functions to export data (in different formats?)

Data Cleaning
  • Use table() to look at frequencies

  • Get a count …

Transforming Data
  • Need these

Creating univariate regression models
  • FIXME

Building a regression model
  • FIXME

Glossary

FIXME