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

Milestone Report
Entrega Final 2VA
Document
Electra_Grid Activity
Publish Document
DISEÑO DE EXPERIMETOS
Document
DISEÑO DE EXPERIMENTOS 1
Modern Portfolio Theory Analysis
Client Memo: Capital Allocation Using MPT
DocumentCAPM & Multi-Factor Models Analysis
Tesla, Toyota, GM - Part 2 MPT Assignment
Homework 10
Titanic Dataset
NextWordpredictor
TextPredictor is a Shiny web app that predicts the next word in a user-entered phrase using unigram, bigram, and trigram frequency tables with a backoff strategy. The system is fast, lightweight, and demonstrates practical applications of R, Shiny, and NLP for text prediction. A 5-slide RPubs presentation explains the model, data, and app functionality.
Assement of wellness programmes
This project evaluates the financial impact of a workplace wellness programme using data from a randomised control trial (RCT). The analysis begins by cleaning the dataset and renaming variables for clarity. It then explores the data through summary statistics and visualisations, highlighting a potential selection bias where healthier employees are more likely to enrol. To address this, the study contrasts a standard OLS regression, which misleadingly suggests cost savings due to the "healthy user" effect, with an instrumental variables (IV) regression. The IV analysis uses the random assignment of the programme as an instrument to isolate the true causal effect, ultimately revealing that the wellness programme has no statistically significant impact on reducing employee medical spending.