Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Hello, can you please help me with the question shown below? I am having trouble understanding what is meant from RStudio code and how to

Hello, can you please help me with the question shown below? I am having trouble understanding what is meant from RStudio code and how to answer this problem correctly.

What is the confidence interval of this one tailed test at 99%? Do you reach a different conclusion from this hypothesis test compared to the 95% one tailed test? What does this tell us about the relationship between a mother's smoking and the birth weight of her baby?

Code for 99% confidence interval one tailed test

Welch Two Sample t-test data: nc$weight by nc$habit t = 2.359, df = 171.32, p-value = 0.009725 alternative hypothesis: true difference in means between group nonsmoker and group smoker is greater than 0 99 percent confidence interval: 0.001431336 Inf sample estimates: mean in group nonsmoker mean in group smoker 7.144273 6.828730

Code for 95 % confidence interval one tailed test

> t.test(nc$weight ~ nc$habit, alternative = "greater", conf.level = .95) Welch Two Sample t-test data: nc$weight by nc$habit t = 2.359, df = 171.32, p-value = 0.009725 alternative hypothesis: true difference in means between group nonsmoker and group smoker is greater than 0 95 percent confidence interval: 0.09432986 Inf sample estimates: mean in group nonsmoker mean in group smoker 7.144273 6.828730

Since our hypothesis is that the average birth weight of babies born to non-smoking mothers is greater than the birth weight of babies born to smoking mothers. We'll add the alternative = "greater" option to the function. We specify "greater" because the t.test function compares what the first group to the second group. So, we expect non-smoker birth weights to be greater on average than smoker birth weights.

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Calculus

Authors: Howard Anton, Irl C Bivens, Stephen Davis

10th Edition

1118404009, 9781118404003

More Books

Students also viewed these Mathematics questions