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

Code Along 8
Compounding_FINAL
This is my final edit
Enkhjin/ex4
Polynomial Regression
This R Markdown document, titled Polynomial Regression by L.S. Oluwatobi, demonstrates the application of polynomial regression to a salary dataset. The script begins by importing the dataset, Position_Salaries.csv, and selecting relevant columns for analysis. It then splits the dataset into training and test sets using the caret package and applies feature scaling to numeric variables. A linear regression model is first fitted to examine the relationship between salary and job level, followed by a polynomial regression model where higher-degree terms (Level², Level³, Level⁴) are added to better capture nonlinear patterns. The results indicate that polynomial regression provides a significantly better fit compared to linear regression, as seen in the higher adjusted R-squared value and lower residual errors. The document further includes visualizations using ggplot2, plotting both the linear and polynomial regression predictions against actual salary data. The final visualization employs a higher-resolution curve to illustrate the improved predictive power of polynomial regression.
Unsupervised_Learning
Chapter 10 of An Introduction to Statistical Learning with Applications in R
Lab_6
Modelación del caso COVID
Project 3