Question: Add a new chunk of code that will include a multiple linear regression of the data within the Insurance2 dataset you created during the correlation
Add a new chunk of code that will include a multiple linear regression of the data within the Insurance2 dataset you created during the correlation analysis. Specifically, we want to see the impact of age, bmi and children on charges. For this code, follow the guidelines from Cookbook for R reading this week, specifically I want to see both the coefficients and summary of output (see below).
should be a linear regression formula for r studio.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
