Question

Complete this homework by R and put the syntaxes of R and corresponding outputs under respective question

[Example Question] Find the mean and the variance of milk yield data.

> mean(task)

[1] 36.15385

A medical researcher wishes to determine if a pill has the undesirable side effect of reducing the blood pressure of the user

I apologized i put the wrong qs

0 0
Add a comment Improve this question Transcribed image text
Answer #1

## R command

Before=c(70,80,72,76,76,76,72,78,82,64,74,92,74,68,84)
After=c(68,72,62,70,58,67,68,59,66,72,74,65,74,72,73)

## a) The 95% Confidence interval include in output of this test
t.test(x=Before, y =After, alternative = "greater", paired =TRUE,
conf.level = 0.95)

## End

Let, d=Before=After

Hypothesis

H_{o}:~\mu_{d}=0

H_{1}:~\mu_{d}>0

The 95% confidence interval for the true population mean reduction in blood pressure is (3.580296, infinity). Hence, the true population mean reduction in blood pressure falls in this interval with 95% confidence.

b) The p-value of the test is 0.003009 and less than 0.01 significance level. Hence, we can reject the null hypothesis and accept the claim that the pill has the undesirable side effect of reducing the blood pressure of the user at the 0.01 significance level.

Add a comment
Know the answer?
Add Answer to:
Complete this homework by R and put the syntaxes of R and corresponding outputs under respective...
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for? Ask your own homework help question. Our experts will answer your question WITHIN MINUTES for Free.
Similar Homework Help Questions
ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT