Homework Help Question & Answers

# Rstudio programming (R programming) The weight and systolic blood pressure of 26 randomly selected males in...

Rstudio programming

(R programming) The weight and systolic blood pressure of 26 randomly selected males in the age group 25-30 are found in the attached CSV file. Fit a simple linear regression model relating systolic blood pressure (y) to weight (2). (30 points) (a) Provide the R code which fits the model and outputs the summary of the fitting. (b) Report the model fitting summary (c) Write down the fitted linear model and its interpretation. (d) Write down the null and alternative hypotheses for testing the slope, B1. Draw a conclusion based on the observed test statistic and p-value.
| AB weight_sys bp 165 130 167 133 180 150 128 151 146 150 175 190 210 140 200 148 in no-mio- 158 169 170 172 159 174 183 215 195 150 163
180| 143 240 235 192 187 156 124 170 165 160 159

a)

R code

b)

R-output Model fitting summary

Version:1.0 StartHTML:0000000107 EndHTML:0000002858 StartFragment:0000000127 EndFragment:0000002840

 > summary(fit) Call: lm(formula = sys_bp ~ weight) Residuals: Min 1Q Median 3Q Max -17.182 -6.485 -2.519 8.926 12.143 Coefficients: Estimate Std. Error t value Pr(>|t|) (Intercept) 69.10437 12.91013 5.353 1.71e-05 *** weight 0.41942 0.07015 5.979 3.59e-06 *** --- Signif. codes: 0 ‘***’ 0.001 ‘**’ 0.01 ‘*’ 0.05 ‘.’ 0.1 ‘ ’ 1 Residual standard error: 8.681 on 24 degrees of freedom Multiple R-squared: 0.5983, Adjusted R-squared: 0.5815 F-statistic: 35.74 on 1 and 24 DF, p-value: 3.591e-06 

c)

Fitted linear regression model is

sys_bp =69.10437 + 0.41942 * weight

Interpretation :The Values of multiple R-squared: 0.5983 and Adjusted R-squared: 0.5815 are not closed to 1 so we can conclude that fitted model is not good linear fit between sys_bp and weight.

d)

Ho : B1 =0 ie. weight is not significant to predict sys_bp

VS

H1 : B1 0 i.e. weight is statistically significant.

P-value : 3.59e-06 = 0.00000359 < 0.05

so we reject null hypothesis (H0)

Conclusion : B1 0 so weight is statistically significant with =0.05

-------------------------------------------------------------------------------------------------------------------------------------------------------------

Dear student,
I am waiting for your feedback. I have given my 100% to solve your queries. If you are satisfied by my given answer. Can you please help me out by giving thumbs up .

Thank You!

##### Add Answer to: Rstudio programming (R programming) The weight and systolic blood pressure of 26 randomly selected males in...
Similar Homework Help Questions
• ### Serum Systolic Serum Systolic Serum Systolic Serum Systolic Serum Systolic 04 137 183115 218 145 209 170 195 115 Question 1a: Data a. Use the proportion from question 1a. Test the claim that t...

Serum Systolic Serum Systolic Serum Systolic Serum Systolic Serum Systolic 04 137 183115 218 145 209 170 195 115 Question 1a: Data a. Use the proportion from question 1a. Test the claim that the Sample 153 127 193 146 173 194 163 201...-174--157 proportion of Asianssi-s than 25%, use 219 ; 1191 163 160 174,160 140 Proportion 0.2 Critical Value 1.645 Margin of Error 0.0658 144 140 145 177 152166175 200 131 Hypotheses: You may write HO and Hl Test...

• ### Question 10 3 pts Captopril is a drug designed to lower systolic blood pressure. When subjects...

Question 10 3 pts Captopril is a drug designed to lower systolic blood pressure. When subjects were treated with this drug, their systolic blood pressure readings (in mm Hg) were measured before and after the drug was taken. Results are given in the accompanying table. Using a 0.01 significance level, is there sufficient evidence to support the claim that captopril is effective in lowering systolic blood pressure? I J Subject Before After А 200 191 B 174 170 с 198...

• ### A pharmaceutical company.claims that its new drug reduces systolic blood pressure. The systolic blood pressure (in...

A pharmaceutical company.claims that its new drug reduces systolic blood pressure. The systolic blood pressure (in millimeters of mercury) for nine patients before taking the new drug and 2 hours after taking the drug are shown in the table below. Is there enough evidence to support the company's claim? Let d (blood pressure before taking new drug)-(blood pressure after taking new drug). Use a significance level of a 0.05 for the test. Assume that the systolic blood pressure levels are...

• ### 21.HE.B: Captopril is a drug designed to lower systolic blood pressure. When subjects were treated with this drug, their systolic blood pressure readings (in mm Hg) were measured before and after the...

21.HE.B: Captopril is a drug designed to lower systolic blood pressure. When subjects were treated with this drug, their systolic blood pressure readings (in mm Hg) were measured before and after the drug was taken. The results are in the accompanying table on the next page. (a)      Go through “The Drill” for paired t-tests (Use a 0.05 α-level and the corresponding confidence interval.)           The Drill: Assumptions and Conditions Paired Data Condition The data must be paired. Only use pairing if...

• ### A pharmaceutical company claims that its new drug reduces systolic blood pressure. The systolic blood pressure...

A pharmaceutical company claims that its new drug reduces systolic blood pressure. The systolic blood pressure (in millimeters of mercury) for nine patients before taking the new drug and 2 hours after taking the drug are shown in the table below. Is there enough evidence to support the company's claim? Let d=(blood pressure before taking new drug)−(blood pressure after taking new drug). Use a significance level of α=0.1 for the test. Assume that the systolic blood pressure levels are normally...

• ### The data below were collected to test the effectiveness of a drug to lower systolic blood...

The data below were collected to test the effectiveness of a drug to lower systolic blood pressure. Blood pressure (in mm of mercury) was measured before and after treatment for 12 patients: the results are shown. The company claims the drug is effective. Explore this claim through completing the given questions. Assume the population differences is approximately normal and that all conditions for testing are satisfied. 1 Subject Before A 200 B 174 c 198 D 170 E 179 F...

• ### The systolic blood pressure of individuals is thought to be related to both age and weight....

The systolic blood pressure of individuals is thought to be related to both age and weight. For a random sample of 11 men, the following data were obtained Weight (pounds) Systolic Blood pressue Age (years) 149 132 52 173 143 59 184 153 67 194 162 73 211 154 64 196 16B 74 220 137 54 188 61 188 159 65 207 128 46 167 166 72 217 (a) Generate summary statistics, including the mean and standard deviation of each...

• ### Maintaining a healthy weight is important for women’s health. Some physicians recommend being back to your...

Maintaining a healthy weight is important for women’s health. Some physicians recommend being back to your pre-pregnancy weight six months after giving birth. Public health officials are interested in whether this is a realistic goal. Do the women in North Carolina weigh more than their pre-pregnancy weight six months postpartum? In other words, is the six months post-pregnancy weight greater than their pre-pregnancy weight? Use a paired samples t-test to compare pst6wght (variable 1) and prewght (variable 2). This uses...

• ### Consider the dataset in the proj2-3.txt file on BlackBoard. In this problem, focus is on high systolic blood pressure (sbp) and possible explanatory variables Body Mass Index (bmi), and scale (scl)....

Consider the dataset in the proj2-3.txt file on BlackBoard. In this problem, focus is on high systolic blood pressure (sbp) and possible explanatory variables Body Mass Index (bmi), and scale (scl). Consider the linear regression model with response high SBP and scale as explana- tory variables. Explain the coefficients in the model? Explain the null hypotheses that the estimated slope equals 0? Write a summary of your findings. What is your conclusion? Residuals: Min 1Q Median 3Q Max -72.64 -27.55...

• ### // This is how the output should look. Everything is correct with my arrival and departure times....

// This is how the output should look. Everything is correct with my arrival and departure times. I also have the correct output of 4 people for total number of people processed. My problem is that i am getting 15.25 for the average time spent waiting. Please help me. The correct answer is below, 3.25 Processing an arrival event at time: 20 Processing an arrival event at time: 22 Processing an arrival event at time: 23 Processing a departure event...

Free Homework App