Background: Research has demonstrated the negative impact of racism on health, yet the measurement of racial sentiment remains challenging. This article provides practical guidance on using social media data for measuring public sentiment.
Methods: We describe the main steps of such research, including data collection, data cleaning, binary sentiment analysis, and visualization of findings.