Hello, can you please help me with the question shown below? Iam having trouble understanding what is meant from RStudio code andhow to answer this problem correctly.
What is the confidence interval of this one tailed testat 99%? Do you reach a different conclusion from this hypothesistest? What does this tell us about the relationship between amother's smoking and the birth weight of her baby?
Code for 99% confidence interval one tailedtest
Welch Two Sample t-test data: nc$weight by nc$habitt = 2.359, df = 171.32, p-value = 0.009725 alternative hypothesis:true difference in means between group nonsmoker and group smokeris greater than 0 99 percent confidence interval: 0.001431336 Inf sample estimates: mean in groupnonsmoker mean in group smoker 7.144273 6.828730
Code for 95 % confidence interval one tailedtest
> 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 betweengroup nonsmoker and group smoker is greater than 0 95 percentconfidence 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 babiesborn to non-smoking mothers is greater than the birth weight ofbabies born to smoking mothers. We'll add the alternative ="greater" option to the function. We specify "greater" because thet.test function compares what the first group to the second group.So, we expect non-smoker birth weights to be greater on averagethan smoker birth weights.
Hello, can you please help me with the question shown below? I am having trouble understanding what is meant from RStudi
-
- Site Admin
- Posts: 899603
- Joined: Mon Aug 02, 2021 8:13 am