An open API service indexing awesome lists of open source software.

https://github.com/lisayinr/r-language

Linear Regression Model in R
https://github.com/lisayinr/r-language

linear-regression linear-regression-models r

Last synced: 12 months ago
JSON representation

Linear Regression Model in R

Awesome Lists containing this project

README

          

# Overview

To grow as a software engineer, I wanted to expand my understanding of statistical programming by learning the R language. This software reads a CSV file that contains data of advertising spending and the outcome in sales. The program then builds a linear regression model and creates a graph showing the relationship between advertising and sales using ggplot2.

The purpose for writing this software is to have a solid foundation of using R's syntax and data structures by applying it to a real world situation. It demonstrates how the R language works with multiple datatypes (numeric, integer, character, logical, and list), dataframes, and loops.

Video Demonstration of how my software works: [Software Demo Video](https://youtu.be/TVtzkOTjZg4)

# Development Environment

* Visual Studio Code
* Git / Github
* Ggplot2 library
* R version 4.5.0

# Useful Websites

- [Geeksforgeeks.org](https://www.geeksforgeeks.org/basic-syntax-in-r-programming/)
- [Geeksforgeeks.org](https://www.geeksforgeeks.org/r-keywords/)
- [Geeksforgeeks.org](https://www.geeksforgeeks.org/r-data-types/)
- [Geeksforgeeks.org](https://www.geeksforgeeks.org/taking-input-from-user-in-r-programming/)
- [Geeksforgeeks.org](https://www.geeksforgeeks.org/data-visualization-with-r-and-ggplot2/)
- [Youtube.com](https://www.youtube.com/watch?v=rKPfssR66GM&ab_channel=SusanB.)
- [Libraryguides.mcgill.ca](https://libraryguides.mcgill.ca/c.php?g=699776&p=4968544)
- [Ggplot2-book.org](https://ggplot2-book.org/themes#sec-saving)
- [Educative.io](https://www.educative.io/courses/learn-r/difference-between-print-and-cat)

# Future Work

- Add user input to
- Allow user to modify what is considered "high sales"
- Make graph interactive