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

BAN 350 Assignment 3
Assignment One
Plot - Random Forest Model
# Plot for Random Forest Model ggplot() + geom_point(aes(x = actual_values, y = predictions_rf), colour = "red") + geom_abline(intercept = 0, slope = 1, linetype = "dashed") + labs(title = "Random Forest Model: Actual vs Predicted", x = "Actual Life Expectancy", y = "Predicted Life Expectancy")
RMSE all models
# 5. Plot with box and whisker for RMSE comparison bwplot(results, metric = "RMSE")
Plot ANN model
# Plot for ANN Model ggplot() + geom_point(aes(x = actual_values, y = predictions_ann), colour = "blue") + geom_abline(intercept = 0, slope = 1, linetype = "dashed") + labs(title = "ANN Model: Actual vs Predicted", x = "Actual Life Expectancy", y = "Predicted Life Expectancy")
Plot SNM model
# Plot for SVM model ggplot() + geom_point(aes(x = actual_values, y = predictions_svm), colour = "green") + geom_abline(intercept = 0, slope = 1, linetype = "dashed") + labs(title = "SVM Model: Actual vs Predicted", x = "Actual Life Expectancy", y = "Predicted Life Expectancy")
Plot KNN Model
# PLot for KNN Model ggplot() + geom_point(aes(x = actual_values, y = predictions_knn), colour = "purple") + geom_abline(intercept = 0, slope = 1, linetype = "dashed") + labs(title = "KNN Model: Actual vs Predicted", x = "Actual Life Expectancy", y = "Predicted Life Expectancy")
LRM model plot
# Plot for LRM ggplot() + geom_point(aes(x = actual_values, y = predictions_lm), colour = "orange") + geom_abline(intercept = 0, slope = 1, linetype = "dashed") + labs(title = "Linear Regression Model: Actual vs Predicted", x = "Actual Life Expectancy", y = "Predicted Life Expectancy")
CLASE INTRODUCTORIA R
Clase introductoria R
Clase Introductoria