Skip to content

Instantly share code, notes, and snippets.

View crogger62's full-sized avatar

Craig Lewis crogger62

  • ThoughtWorks
  • United States
View GitHub Profile
@jfaganUK
jfaganUK / animate_least_squares.R
Created October 17, 2019 13:44
Animating the optimization of least squared linear model
## Animate optim ordinary least squares
rm(list=ls())
gc()
library(ggplot2)
library(tidyverse)
library(foreign)
library(gganimate)
library(transformr)
library(data.table)