This project contains the code for our paper: "The Effect of Fear of Infection and Sufficient Vaccine Reservation Information on Rapid COVID-19 Vaccination in Japan: Evidence From a Retrospective Twitter Analysis".
The Twitter dataset is available at https://github.com/thepanacealab/covid19_twitter. The notebook COVID_19_dataset_Tutorial.ipynb
in the repository was adjusted to only collect Japanese tweets and applied day by day to collect the daily tweets.
The daily vaccination data was collected from the official website of the Prime Minister’s Office of Japan (PMOJ).
- Twitter API key
- spacy
- ginza
- numpy
- scikit-learn
- pandas
- seaborn
- matplotlib
- japanize_matplotlib
- wordcloud
- googletrans==4.0.0-rc1
- ruptures
python 2_3_top_words_condition.py
python 2_4_top_biwords_condition.py
python 2_7_analyze_trend_keyword.py
python 3_1_sentiment.py
python 3_3_draw_emotion.py
python 4_2_LDA_fear.py
python 4_1_LDA_fear_topic_num.py
Banda, Juan M., et al. "A large-scale COVID-19 Twitter chatter dataset for open scientific research—an international collaboration." Epidemiologia 2.3 (2021): 315-324.
Niu Q, Liu J, Kato M, Nagai-Tanima M, Aoyama T
The Effect of Fear of Infection and Sufficient Vaccine Reservation Information on Rapid COVID-19 Vaccination in Japan: Evidence From a Retrospective Twitter Analysis
J Med Internet Res 2022;24(6):e37466
URL: https://www.jmir.org/2022/6/e37466
DOI: 10.2196/37466