Skip to content

Instantly share code, notes, and snippets.

View stefaneng's full-sized avatar

Stefan Eng stefaneng

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)