Skip to content

Instantly share code, notes, and snippets.

@gonzalezgouveia
Created February 5, 2019 20:05
Show Gist options
  • Save gonzalezgouveia/7a570e2c2a0dfc9fe0542d3226583dc1 to your computer and use it in GitHub Desktop.
Save gonzalezgouveia/7a570e2c2a0dfc9fe0542d3226583dc1 to your computer and use it in GitHub Desktop.
modeling
all_models <- clean_data %>%
group_by(country) %>%
summarise(n_obs = n(),
b = lm(points ~ log(price))$coefficients[1],
m = lm(points ~ log(price))$coefficients[2])
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment