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

Document
R Studio
R Markdown
This is my first document
EntranceResults2025
EntranceResults2025
Documentspl
CA-G
Data visualisation using ggplot2
This documents shows the basic data visualisation using ggplot2 package
Document
Document
Price Cuts vs. Media Spend: Shock-Based MMM Evidence from Apparel Retail
This report evaluates whether retailers should prioritise temporary price cuts or increased media spend to drive growth. Using a shock-based Marketing Mix Model (MMM) applied to apparel retail data (2019–2024), price and spend innovations are residualised to remove multicollinearity, yielding stable short-horizon elasticities. Results show that discounts dominate for unit growth, while media spend dominates for revenue growth. Scenario formulas and an optimiser are provided for practical planning.