7 Linear Regression: Practical 16

In this practical we continue to examine birthweight as an outcome in the BAB dataset, this time treating birthweight as a quantitative (continuous) variable.

As always, we load libraries, set options, and read in the data.

#--- Load libraries
library(epiDisplay)
library(foreign)
library(psych)
library(magrittr)
library(tidyverse)

#--- Change to show no scientific notation & round to 3 decimal places
options(scipen = 10, digits=3) 

#--- Set the plot theme to come out in black and white
theme_set(theme_bw())

#--- Read in the file
bab9 <- read.dta("./BAB9.dta", convert.factors = T)