Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/wesslen/NCStateSenateFacebook
Structural Topic Modeling of the Facebook posts of NC State Senators
https://github.com/wesslen/NCStateSenateFacebook
structural-topic-modeling
Last synced: about 2 months ago
JSON representation
Structural Topic Modeling of the Facebook posts of NC State Senators
- Host: GitHub
- URL: https://github.com/wesslen/NCStateSenateFacebook
- Owner: wesslen
- Created: 2017-01-01T12:35:41.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2017-03-17T15:15:53.000Z (over 7 years ago)
- Last Synced: 2024-07-28T08:34:24.643Z (about 2 months ago)
- Topics: structural-topic-modeling
- Language: HTML
- Homepage:
- Size: 21.2 MB
- Stars: 12
- Watchers: 2
- Forks: 3
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
## Introduction
I've created this GitHub respository that analyzes nearly 7,000 Facebook posts by NC State Senators between Jan 2014 to Dec 2016. Specifically, I use [Structural Topic Modeling](http://www.structuraltopicmodel.com/) to identify the topics and estimate the effect party has on each topic's prevalence.
I haven't uploaded the data used onto GitHub but email me if you're interested in the raw data.
See either Part 1 or Part 2 below for the code and commentary.
## HTML Outputs of NC State Senate Facebook Posts
| Part | Topics |
| --------------------| --------------------------------------------------------------- |
| Part 1 | [Pre-processing & Exploratory](https://htmlpreview.github.io/?https://github.com/wesslen/NCStateSenateFacebook/blob/master/code/STM-ncsenate-facebook-part1.html) |
| Part 2 | [Structural Topic Modeling](https://rawgit.com/wesslen/NCStateSenateFacebook/master/code/STM-ncsenate-facebook-part2.html) |For the code on how the data was pulled, see the file [pullFacebook.R](code/pullFacebook.R)
## Results
![Time Series of the Number of Posts by Political Party](img/STM-senate2.png)
![Facebook Topics](img/STM-senate3.png)
![Effect of Party on the Topic Prevelance of Posts](img/STM-senate4.png)
![Effect of Month on the Topic Prevelance of Top Republican Topics](img/STM-senate5.png)
![Effect of Month on the Topic Prevelance of Top Democratic Topics](img/STM-senate6.png)
![Comparison of HB2 and Bathroom Safety Topics](img/STM-senate7.png)