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

HTML
Mapa Interativo da Rodovias Federais Brasileiras
Plot
Plot
Document
Simple linear regression
hw-301
Forecasting Sales: From Simple to Multiple Linear Regression
This project demonstrates how advertising budgets across TV, Radio, and Newspaper channels influence product sales using the classic Advertising dataset. The analysis begins with a Simple Linear Regression (Sales ~ TV) to explore the direct impact of television advertising on sales. It then advances to a Multiple Linear Regression model that incorporates Radio and Newspaper expenditures to measure their combined predictive strength. • Visualizations created with ggplot2 and plotly illustrate both two-dimensional and interactive 3D relationships among variables. Adjusted R^2 and ANOVA comparisons reveal how expanding the model improves explanatory power - from 61% with TV alone to nearly 90% when all media are included. • This project highlights how statistical modeling supports data-driven marketing decisions and demonstrates a reproducible workflow in R Markdown (ioslides) for clear communication and insight sharing.
Agent-Based Models