I'm confused with the R code, I'm supposed to do a 90% confidence interval at t=0.01.

MATLAB: An Introduction with Applications
6th Edition
ISBN:9781119256830
Author:Amos Gilat
Publisher:Amos Gilat
Chapter1: Starting With Matlab
Section: Chapter Questions
Problem 1P
icon
Related questions
Question

I'm confused with the R code, I'm supposed to do a 90% confidence interval at t=0.01.  

 

[1] -2.008559
> y1=c(596,422,524,454,538,552,478,564,556)
> y2=c(498,460,468,458,530,482,528,598,456)
> t.test(y1,y2,paired-DT)
ta
es
Paired t-test
data: y1 and y2
t = 1.1585, df
alternative hypothesis: true difference in means is not equal to 0
95 percent confidence interval:
-22.67122 68.44900
8, p-value
0.2801
%3D
!3!
sample estimates:
mean of the differences
22.88889
Transcribed Image Text:[1] -2.008559 > y1=c(596,422,524,454,538,552,478,564,556) > y2=c(498,460,468,458,530,482,528,598,456) > t.test(y1,y2,paired-DT) ta es Paired t-test data: y1 and y2 t = 1.1585, df alternative hypothesis: true difference in means is not equal to 0 95 percent confidence interval: -22.67122 68.44900 8, p-value 0.2801 %3D !3! sample estimates: mean of the differences 22.88889
(Exercise 8.2.2) In an experiment to compare two diets for fattening beef steers, nine pairs of
animals were chosen from the herd: members of each pair were matched as closely as possible
with respect to hereditary factors. The members of each pair were randomly allocated, one
to each diet. The following table shows the weight gains (Ib) of the animals over a 140 day
test period on diet 1 (Y1) and on diet 2 (Y2).
Pair
Diet 1
Diet 2
596
498
2
422
460
3
524
468
4
454
458
538
530
6.
552
482 *
478
528
564
598
556
456
(A) Calculate the standard error of the mean difference.
(B) Test for a difference between the diets using a paired t test at a = 0.01.
(C) Construct a 90% confidence interval for the difference in mean. Interpret the confidence
interval.
Transcribed Image Text:(Exercise 8.2.2) In an experiment to compare two diets for fattening beef steers, nine pairs of animals were chosen from the herd: members of each pair were matched as closely as possible with respect to hereditary factors. The members of each pair were randomly allocated, one to each diet. The following table shows the weight gains (Ib) of the animals over a 140 day test period on diet 1 (Y1) and on diet 2 (Y2). Pair Diet 1 Diet 2 596 498 2 422 460 3 524 468 4 454 458 538 530 6. 552 482 * 478 528 564 598 556 456 (A) Calculate the standard error of the mean difference. (B) Test for a difference between the diets using a paired t test at a = 0.01. (C) Construct a 90% confidence interval for the difference in mean. Interpret the confidence interval.
Expert Solution
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 2 steps with 1 images

Blurred answer
Knowledge Booster
Types of Data and Their Measurement
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, statistics and related others by exploring similar questions and additional content below.
Similar questions
Recommended textbooks for you
MATLAB: An Introduction with Applications
MATLAB: An Introduction with Applications
Statistics
ISBN:
9781119256830
Author:
Amos Gilat
Publisher:
John Wiley & Sons Inc
Probability and Statistics for Engineering and th…
Probability and Statistics for Engineering and th…
Statistics
ISBN:
9781305251809
Author:
Jay L. Devore
Publisher:
Cengage Learning
Statistics for The Behavioral Sciences (MindTap C…
Statistics for The Behavioral Sciences (MindTap C…
Statistics
ISBN:
9781305504912
Author:
Frederick J Gravetter, Larry B. Wallnau
Publisher:
Cengage Learning
Elementary Statistics: Picturing the World (7th E…
Elementary Statistics: Picturing the World (7th E…
Statistics
ISBN:
9780134683416
Author:
Ron Larson, Betsy Farber
Publisher:
PEARSON
The Basic Practice of Statistics
The Basic Practice of Statistics
Statistics
ISBN:
9781319042578
Author:
David S. Moore, William I. Notz, Michael A. Fligner
Publisher:
W. H. Freeman
Introduction to the Practice of Statistics
Introduction to the Practice of Statistics
Statistics
ISBN:
9781319013387
Author:
David S. Moore, George P. McCabe, Bruce A. Craig
Publisher:
W. H. Freeman