Andreas Jungherr
  • Home
  • About
  • Blog
  • Publications
    • Digital Transformations of the Public Arena (2022)
    • Retooling Politics: How Digital Media Are Shaping Democracy (2020)
    • Analyzing Political Communication with Digital Trace Data (2015)
    • Das Internet in Wahlkämpfen: Konzepte, Wirkungen und Kampagnenfunktionen (2013)
  • Podcast: Tech and Politics
  • Media
  • Teaching
  • Impressum
  • Home
  • About
  • Blog
  • Publications
    • Digital Transformations of the Public Arena (2022)
    • Retooling Politics: How Digital Media Are Shaping Democracy (2020)
    • Analyzing Political Communication with Digital Trace Data (2015)
    • Das Internet in Wahlkämpfen: Konzepte, Wirkungen und Kampagnenfunktionen (2013)
  • Podcast: Tech and Politics
  • Media
  • Teaching
  • Impressum
15 Oct 2016
Andreas Jungherr Teaching
2016/10/15 Andreas Jungherr

Sozialwissenschaftliches Arbeiten mit Twitter-Daten (Luzern): Session 7 – Extracting Data for Typical Analyses

In this session we focus on querying the data contained in our database to extract information allowing us a series of typical analyses often performed with Twitter data. The three analytical approaches are counts, time series, and network analysis. In the tutorial we describe these analytical approaches in detail and list exemplary studies illustrating these approaches (see Jürgens & Jungherr, pp. 42-79).

We will query the database from Python using a series of predefined commands. As before, we use peewee to communicate with our SQLite database from Python. Make sure to examine the workings of these commands in detail. You find them listed in our script “database.py“.

After exporting the summary statistics ready for analysis, we load them into R to perform a series of typical analyses. You find introductory readings on using R, exploratory data analysis in R, plotting data in R, time series analysis, and network analysis in the background readings.

The example scripts provided for us are specified to work with an example dataset collected by us during on the Republican Primary debates in the autumn of 2015. You can download a replication dataset through Twitter’s “hydrate” function following the instructions in Jürgens & Jungherr, p. 42. Of course you can adapt our commands provided in the files “example.py” and “database.py” according to your interest. Still, presently they are optimized to working with our sample dataset.

Mandatory Readings:

  • Pascal Jürgens and Andreas Jungherr (2016) A Tutorial for Using Twitter Data in the Social Sciences: Data Collection, Preparation, and Analysis. Social Science Research Network (SSRN). doi: 10.2139/ssrn.2710146, pp. 42-79.

Background Readings R:

  • Winston Chang (2012) R Graphics Cookbook. O’Reilly Media, Inc.
  • Garrett Grolemund and Hadley Wickham (2016) R for Data Science. O’Reilly Media, Inc.
  • Robert Kabacoff (2015) R in Action. 2nd ed. Manning Publications.
  • Hadley Wickham (2016) ggplot2: Elegant Graphics for Data Analysis. 2nd ed. Springer.

Background Readings: Time Series Analysis:

  • Janet M. Box-Steffensmeier et al. (2014) Time Series Analysis for the Social Sciences. New York, NY: Cambridge University Press.

Background Readings: Network Analysis:

  • David Easley and Jon Kleinberg. Networks, Crowds, and Markets: Reasoning About a Highly Connected World (2010) Cambridge, UK et al.: Cambridge University Press.
  • Eric D. Kolaczyk and Gábor Csárdi (2014) Statistical Analysis of Network Data with R. Springer.

Course Material:

  • Using Digital Trace Data in the Social Sciences: Session 7 Code

Back to Course Overview.

Big Data, Computational Social Science, Course Material, ggplot2, Network Analysis, peewee, Python, R, Social Network Analysis, SQLite, Time Series Analysis, Twitter, Using Digital Trace Data in the Social Sciences
  • Recent Posts

    • Interview mit hr-iNFO: Trump twittert wieder
    • Welche Rolle spielt Desinformation in den US Midterms 2022?
    • New Publication: Review of Vaccari & Valeriani – Outside the Bubble (2021)
    • Lehrveranstaltungen Wintersemester 2022/3
    • Keynote: Digitaler Wandel im Kaleidoskop der Sozialwissenschaft
  • Categories

    • Conferences
    • Interviews
    • Lecture Podcast
    • News
    • Notes
    • Public Speaking
    • Publications
    • Teaching
    • Videos
  • Archives

    • December 2022 (1)
    • November 2022 (1)
    • October 2022 (3)
    • July 2022 (1)
    • June 2022 (4)
    • May 2022 (2)
    • April 2022 (1)
    • February 2022 (1)
    • January 2022 (2)
    • December 2021 (3)
    • November 2021 (1)
    • October 2021 (2)
    • September 2021 (3)
    • July 2021 (1)
    • June 2021 (4)
    • April 2021 (3)
    • March 2021 (2)
    • January 2021 (1)
    • December 2020 (1)
    • November 2020 (2)
    • October 2020 (2)
    • September 2020 (1)
    • July 2020 (1)
    • June 2020 (1)
    • April 2020 (5)
    • March 2020 (2)
    • February 2020 (1)
    • January 2020 (4)
    • November 2019 (1)
    • October 2019 (2)
    • September 2019 (1)
    • July 2019 (1)
    • April 2019 (3)
    • January 2019 (1)
    • November 2018 (1)
    • September 2018 (2)
    • March 2018 (1)
    • February 2018 (1)
    • December 2017 (1)
    • October 2017 (1)
    • September 2017 (1)
    • July 2017 (2)
    • June 2017 (1)
    • May 2017 (3)
    • April 2017 (2)
    • March 2017 (2)
    • January 2017 (2)
    • December 2016 (1)
    • November 2016 (1)
    • October 2016 (17)
    • July 2016 (11)
    • June 2016 (1)
    • March 2016 (1)
    • February 2016 (2)
    • January 2016 (1)
    • November 2015 (3)
    • October 2015 (1)
    • September 2015 (3)
    • May 2015 (1)
    • April 2015 (3)
    • March 2015 (3)
    • February 2015 (3)
    • January 2015 (1)
    • October 2014 (2)
    • August 2014 (2)
    • April 2014 (1)
    • March 2014 (1)
    • February 2014 (2)
    • December 2013 (1)
    • October 2013 (3)
    • September 2013 (3)
    • August 2013 (4)
    • July 2013 (3)
    • June 2013 (2)
    • May 2013 (1)
    • April 2013 (1)
    • March 2013 (1)
    • February 2013 (1)
    • December 2012 (1)
    • November 2012 (2)
    • October 2012 (3)
    • September 2012 (3)
    • August 2012 (2)
    • June 2012 (1)
    • April 2012 (8)
    • March 2012 (1)
    • February 2012 (1)
    • October 2011 (2)
    • September 2011 (1)
    • August 2011 (1)
    • July 2011 (5)
    • June 2011 (2)
    • May 2011 (4)
    • April 2011 (1)
    • March 2011 (2)
    • February 2011 (3)
    • January 2011 (2)
    • December 2010 (3)
    • November 2010 (1)
    • October 2010 (1)
    • September 2010 (3)
    • July 2010 (1)
    • June 2010 (2)
    • May 2010 (1)
    • April 2010 (4)
    • March 2010 (3)
    • February 2010 (6)
    • January 2010 (1)
    • December 2009 (3)
    • August 2009 (1)
    • April 2009 (1)
    • March 2009 (3)
    • January 2009 (2)
    • December 2008 (3)
    • November 2008 (3)
    • October 2008 (9)
    • August 2008 (1)
  • On the web

    • instagram
    • linkedin
    • twitter
    • xing
    • youtube
  • Navigation

    • Home
    • About
    • Blog
    • Publications
      • Digital Transformations of the Public Arena (2022)
      • Retooling Politics: How Digital Media Are Shaping Democracy (2020)
      • Analyzing Political Communication with Digital Trace Data (2015)
      • Das Internet in Wahlkämpfen: Konzepte, Wirkungen und Kampagnenfunktionen (2013)
    • Podcast: Tech and Politics
    • Media
    • Teaching
    • Impressum
  • Contact

    • Feldkirchenstraße 21
      96052 Bamberg, Germany

    • https://andreasjungherr.net/
    • andreas.jungherr[at]uni-bamberg.de
Andreas Jungherr POWERED BY United Themes™