A project in collaboration with Bartosz Bartkowski and Robert Finger. This is the analytical code.
The paper Topics in agricultural and environmental economics – a large-scale bibliometric analysis has been submitted.
Please cite the source code with:
BUT preferably the paper once published.
In this repository you find:
- The AERE.R file provides information on the general order of scripts (and would run them silently if executed, not recommended. More detail is provided if scripts are run on their own). Yet, it loads (and installs if need be) the required packages.
The seperate files are
-
The cleaning.R file reads in WoS data (on Linux)
-
The preprocess.R file prepares the data for the STM model
-
The analysis.R file estimates the STM models including uncertainties
-
The descriptivePlots.R file provides the code for plotting bibliometric info
-
The stmDeep.R file extracts further details, plots topic figures, and outputs supplementary material
-
The helperFunctions.R provide some helpful functions for processing text as data and extracting data from text. The fieldtags.csv file provides some additional information on the WoS data variable codings. Reference: https://github.com/aknutas/nails
-
The stminsights subfolder provides the shiny app for stminsights that can be accessed at: https://ndroste.shinyapps.io/stminsights/, where the stminsights.RData can be uploaded to inspect the STM model. Reference: https://github.com/cschwem2er/stminsights