Skip to content

Instantly share code, notes, and snippets.

@dgkeyes
Created September 23, 2020 21:03
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dgkeyes/8ce19b9140bf443b0d44c4a140bf6fd1 to your computer and use it in GitHub Desktop.
Save dgkeyes/8ce19b9140bf443b0d44c4a140bf6fd1 to your computer and use it in GitHub Desktop.
# Introduction to the Dataset
You'll be working with the college dataset to run all your analyses.
1. Create a new project. Make sure you put it somewhere you'll be able to find it again later!
2. Download the dataset "college.csv" from https://bit.ly/college-dataset
3. Create a new R script file or RMarkdown document where you'll do all of your inferential statistics
4. Import the spreadsheet into a dataframe `college` using `readr::read_csv()`
```{r}
library(tidyverse) ## because tidyverse = life
library(skimr) ## looking at the data
library(summarytools) ## looking at the data
library(broom) ## for extracting output using broom
library(janitor) ## for chi-square: tabyl for chi-squares
library(lm.beta) ## for regression: standardized coefficients
library(psych) ## for reliability: omega and alpha
library(apa) ## for reporting results in APA format
library(ggpubr) ## for qq plots
library(rstatix) ## for shapiro_test that is pipe-friendly
college <- read_csv("../data/college.csv")
```
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment