Loading wiki pages...

Wiki Version:
<h2>Introduction</h2> <p>We used the following software:</p> <ul> <li><a href="http://www.stata.com/stata13/" rel="nofollow">Stata 13</a></li> <li><a href="http://cran.r-project.org/" rel="nofollow">R</a> (versions changed over time, but the last we used was V 3.2.4.) and the packages <a href="http://cran.r-project.org/web/packages/tm/index.html" rel="nofollow">tm</a>, <a href="http://cran.r-project.org/web/packages/wordcloud/index.html" rel="nofollow">wordcloud</a>, <a href="http://cran.r-project.org/web/packages/ggplot2/index.html" rel="nofollow">ggplot2</a>, <a href="http://cran.r-project.org/web/packages/MASS/index.html" rel="nofollow">MASS</a></li> <li>Adobe Photoshop for post-processing of figures (e.g. adding legends, topic labelling within figures),</li> </ul> <p>The NLP pipeline was implemented in Java.</p> <p>If you have any issues finding what you are looking for or if you have any questions, feel free to contact the corresponding author (Julia Rohrer). Contact Martin Brümmer for questions regarding the NLP pipeline. Notice that you will have to exchange paths to the proper working directories on your PC if you plan to use any of these scripts yourself. Also, please note that the code we wrote is not optimized but rather grew "organically". So if you decide to run your own analyses, just pick the bits and pieces that you consider helpful.</p> <h2>Data</h2> <p>We are not able to make the data sets used in our study accessible because of third party restrictions. However, data are made available to the scientific community after signing a data distribution contract with DIW Berlin. See <a href="http://www.diw.de/en/diw_02.c.222517.en/data.html" rel="nofollow">DIW Berlin: Data</a> or contact soepmail@diw.de. Please notice that the textual data we used is not part of the standard data distribution of the SOEP; instead, it needs to be explicitely requested.</p> <h2>Scripts & Code</h2> <p><strong>Analysis of selection effects</strong></p> <p>Run in Stata. Requires the original data set (long format) that we received from the DIW. See do-files for more information on included variables.</p> <p><a href="http://osf.io/q69h2/" rel="nofollow">First do-file: Prepare data for analysis</a></p> <p><a href="http://osf.io/dtq9s/" rel="nofollow">Second do-file: Multilevel models</a></p> <p><strong>Pre-processing of textual data</strong></p> <p>The NLP pipeline is implemented in Java. To run it, import the Textual Processing Software folder into the IDE of your choice. Follow the <a href="https://osf.io/vczt3/" rel="nofollow">README.md</a> for further guidelines.</p> <p>The pipeline depends on wordlists and dictionaries in the Textual Processing Resources folder, namely:</p> <ul> <li><a href="https://osf.io/9b4qx/" rel="nofollow">Abbreviation dictionary</a>: A list of common abbreviations and their full form with which they are replaced</li> <li><a href="https://osf.io/zv569/" rel="nofollow">Exception dictionary</a>: A list of words that should not be spell-checked because it results in systematic errors</li> <li><a href="https://osf.io/qjtpm/" rel="nofollow">Expansion dictionary</a>: A list of stemmed word forms and the full forms they are to be replaced with for readability and visualization</li> <li><a href="https://osf.io/gazkd/" rel="nofollow">Stemming dictionary</a>: A list of full word forms and their stemmed equivalents for stemming. Heavily modified form of the <a href="http://snowball.tartarus.org/algorithms/german/diffs.txt" rel="nofollow">Snowball Stemmer German Stemming dictionary</a></li> <li><a href="https://osf.io/cewns/" rel="nofollow">Stopword list</a>: A list of stopwords to be removed because they are semantically meaningless</li> </ul> <p><strong>LDA</strong></p> <p>Check <a href="https://osf.io/vczt3/" rel="nofollow">README.md</a> for the MalletClusterer we used for topic modeling.</p> <p>Results were translated to English and plotted in R. The data input used here is one tsv-file per topic, which contains the words and their respective weights within the topic. </p> <p><a href="http://osf.io/rxfnw/" rel="nofollow">Translation file German -&gt; English</a> (notice that this file is not identical to the one we provided as Supporting Material; for presentation as Supporting Material, we removed untranslated words and the second column that had included some word-count information of a former version of the data)</p> <p><a href="http://osf.io/jr5zh/" rel="nofollow">R script to create topic wordclouds</a></p> <p><strong>Word-level analyses</strong></p> <p>Word-level correlational analyses are run on a rather sparse data matrix with one column for each word tested (0 = word not used in answer, 1 = word used in answer).</p> <p><a href="http://osf.io/fmj5k/" rel="nofollow">R script to run a large number of linear models</a> - this is anything but efficient code, so I recommend that (in case you want to run this type of analysis yourself) you write your own script.</p> <p><a href="http://osf.io/x3myt/" rel="nofollow">R script to plot the results of these analyses</a> - we used Photoshop to add legends and remove the border lines.</p> <p><strong>Topic-level analyses</strong></p> <p>Topic-level analyses are run on data with additional columns, that is, one for each topic.</p> <p><a href="https://osf.io/tx82b/" rel="nofollow">Topics over time</a> - calculate the measure of variability we used in this study (CFB) and plots the results, furthermore plots the trajectories of selected topics over time.</p> <p><a href="https://osf.io/n4m9q/" rel="nofollow">Topics & close-ended worry items</a> - calculate the relative risk of topic occurence for people that answered that they were very worried and plots the results. We used Photoshop to label the strongest associations.</p> <p><a href="https://osf.io/9ykjn/" rel="nofollow">Topic-level correlational analyses</a> - This is basically the same as the word-level correlational analyses but run on topic occurence instead of occurence of single words. Script also includes code to plot the results. We used Photoshop to label the strongest associations.</p>
OSF does not support the use of Internet Explorer. For optimal performance, please switch to another browser.
This website relies on cookies to help provide a better user experience. By clicking Accept or continuing to use the site, you agree. For more information, see our Privacy Policy and information on cookie use.

Start managing your projects on the OSF today.

Free and easy to use, the Open Science Framework supports the entire research lifecycle: planning, execution, reporting, archiving, and discovery.