RPubs will retire in June 2027. Your existing documents will stay accessible through December 31, 2031
and Connect Cloud is the recommended home for new publishing. Read the blog post

Recently Published

SPS Data 607 Week9 DC
Assignment: Using a New York Times API in R The New York Times provides multiple public APIs via its developer portal (NYT Developer Network).
Document
Plot
epi553_HW03 - MLR_ToH_IA - Frimpong
This project presents a multiple linear regression analysis of mentally unhealthy days among U.S. adults using the 2023 Behavioral Risk Factor Surveillance System (BRFSS) data (n = 8,000). The analysis examines how physical health, BMI, sex, exercise, age, income, education, and smoking status predict self-reported mentally unhealthy days in the past 30 days. Key components include full model estimation with coefficient interpretation, Type III partial F-tests, chunk tests for income and education, and an interaction analysis exploring whether the association between current smoking and mental health differs by sex. Findings are visualized through adjusted predicted marginal means with 95% confidence intervals. All data processing, recoding, and modeling were conducted in R using tidyverse, broom, gtsummary, car, and ggeffects.
Code Along 9