Skip to content

Instantly share code, notes, and snippets.

@paul-english
Last active August 29, 2015 14:14
Show Gist options
  • Save paul-english/daa2cba84430a2554020 to your computer and use it in GitHub Desktop.
Save paul-english/daa2cba84430a2554020 to your computer and use it in GitHub Desktop.
econometrics thing
install.packages('car')
df <- read.csv("~/data.csv")
plot(df)
# Model 1
model1.y <- df$inf
model1.X <- df$unem
model1 <- lm(y ~ X)
# Model 2
model2.y <- df$inf
model2.X <- rbind(df$inf[-1],head((df$unem - df$nairu), -1))
model2 <- lm(y ~ X - 1)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment