Please provide R code for this question
81.4 173 89.6 174 95.3 182 101.7 186 79.8 171 55.4 146 80.4 171 82.4 173 78.4 170 86.4 178 91.2 173 74.4 163 76.9 167 84.5 176 74 159 81.1 168 58.5 144 67.8 161 65.5 160 70.7 163 72.5 157 84.3 175 90.9 185 72.1 162 69.1 156 68.6 154 75.5 162 77.5 169 85.4 173 76.6 167 57.2 151 79.1 171 93.2 188 93.2 176 71.4 160 63.1 153 107.1 199 78.3 163 79 171 84.7 175 62.3 153 72.1 163 63.2 152 72.5 165 81.4 173 65.1 154 86.6 180 83.3 174 70.2 162 82.6 170 88.3 184 91.8 181 77.8 170 79.1 168 79.1 167 96 188 92.5 1761. (16 marks) A sample of 716 adolescent girls from a particular health authority participated in a study of the relationship between systolic blood pressure (SBP) and resting heart rate (RI-IR}. Measurements of SBP (in mm Hg) and RHR (in beatshnin.) were taken on each girl. You may assume that the SBP measurements are independent and normally distributed with common SD. The data are available in the le bp_heart_rate - txt. a. (2 marks) Write down the linear regression model for these data. Be sure to define your variables and to state all assumptions. b. (1 mark} Fit the model in (a) and provide the table of parameter estimates, standard errors, etc. c. (2 marks) Produce a scatterplot to illustrate the relationship between SBP and RIIR. Be sure to label the axes appropriately. Include the line of best t. d. (5 marks) Conduct the test of whether mean SBP is positively associated with RHR. In particular: i. Specify the null and alternative hypotheses. ii. Specify the value of the test statistic. iii. Specify the pvalue. iv. Using a significance level of a = 0.05, state your conclusions in the language of the problem. e. (2 marks) Provide a 90% confidence interval for the mean SBP of girls with a RIIR of 100 beatsfmin. f. (2 marks) Provide a 90% prediction interval for the SBP of a girl with a Rl-[R of 100 beatsfmin. g. (2 marks) Given an intuitive (not mathematical) explanation as to why your interval in (f) is so much wider than your interval in (e)