topic_analysis: Conducts topic analysis of citations of a given article

Description Usage Arguments Examples

View source: R/topic_analysis.R

Description

Conducts topic analysis of citations of a given article

Usage

1
2
topic_analysis(file, article, output, K = 3:8, runs = 2, max.em.its = 10,
  net.max.em.its = 2, seed = 777)

Arguments

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.

Examples

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)

paulcbauer/citationsr documentation built on May 3, 2019, 5:47 p.m.