Description Usage Arguments Examples
View source: R/topic_analysis.R
Conducts topic analysis of citations of a given article
1 2 | topic_analysis(file, article, output, K = 3:8, runs = 2, max.em.its = 10,
net.max.em.its = 2, seed = 777)
|
file |
'citation_data.csv' that contains data on the citation cases. |
article |
Name of cited article; e.g. Fearon (2003) |
output |
folder where topics object, figures, and tables generated by function will be stored |
K |
number of topics to be computed. If more than one number, will run models with all and then choose that with the highest semantic coherence. |
runs |
total number of STM runs in the cast net stage |
max.em.its |
maximum number of EM iterations in STM |
net.max.em.its |
maximum number of EM iterations when casting the net with STM. |
seed |
seed for random number generator in STM. |
1 2 3 4 5 6 7 8 | ## Not run:
setwd("C:/Users/Paul/GDrive/Research/2016_06_Quality_of_citations")
file <- "data/AcemogluJohnsonRobinson_2001_citation_cases.csv"
article <- "Acemoglu, Johnson & Robinson (2001)"
output <- "output/acemoglu_2001"
topic_analysis(file, article, output)
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.