/tweet-count-poisson-blog

Code for scraping tweets and using various Poisson models for prediction

Primary LanguageR

Predicting Trump's tweet counts

scrape_tweets.py scrapes Trump tweets from Twitter, stored at trump_tweets.csv.

tweet_poisson.R predicts weekly tweet counts using simple Poisson process, detailed in blog post Tweet Counts as Poisson Processes.

tweet_autoregressive.R predicts weekly tweet count using more complicated Poisson GLM model, detailed in blog post Tweet Counts as Poisson GLMs.