I am going to show you step by step how to use Multiple Linear Regression with R to make prediction. For full article, feel free to visit https://learndatascienceskill.com/index.php/2020/07/21/linear-regression-with-r/
Let’s look at how we can solve a regression problem by using multiple linear regression. We will use a data set with 32 lines of data which describe the total quantity of fruits (Qty) sold in a day at beach or park based on different factors (input variables), including
Orange –> Total quantity of orange prepared on that particular day
Temperature –> Surrounding temperature of that particular day (degree Fahrenheit)
Leaflets –> Number of distributed advertising leaflets
Price –> Price of the fruit (same across all fruits on that particular day)
Location –> Park or Beach