Question
To get full credit for the hypothesis testing questions, please follow the five steps of the hypothesis testing including constructing the hypotheses, calculating the test
To get full credit for the hypothesis testing questions, please follow the five steps of the hypothesis testing including constructing the hypotheses, calculating the test statistic after specifying the appropriate formula, stating the distribution of the test statistic under null hypothesis (with degree of freedom specified if it is relevant), finding the p-value, making a correct decision and drawing a valid conclusion. You can use R for the analysis but directly copying and pasting the R output is not sufficient to get full mark. In addition, it might be beneficial for you to practice and go through these questions step by step manually so that you know how to solve similar problems in the exams. 1. (25 points) The data-bfeed.csv file contains data on breast feeding behaviors of 927 mothers. The eleven variables in the dataset are as follows ID: identification number of each mother duration: duration of breast feeding (in weeks) delta: indicator of completed breast feeding (1=yes, 0=no) race: race of mother (1=white, 2=black, 3=other) poverty: indicator of mother in poverty (1=yes, 0=no) smoke: indicator of mother smoked before birth of child (1=yes, 0=no) alcohol: indicator of mother used alcohol before birth of child (1=yes, 0=no) agemth: age of mother at birth of child ybirth: year of child birth (82 means 1982) yschool: education level of mother at child-birth (years of school) pc3mth: indicator of receiving prenatal care after 3rd month (1=yes, 0=no) Please answer the following questions based on this dataset. (a) It is clear that we can estimate the proportion of poverty among the black mothers and that among the white mothers using the information in the dataset. 1 i. (3 points) Please construct a 95% confidence interval for the difference in the population proportions of poverty among these two race groups. That is the 95% confidence interval for the population proportion of poverty among black mothers minus the population proportion of poverty among white mothers. ii. (5 points) Please test whether the poverty proportion among black mothers is at least 5% more than that among white mothers at the level of significance of = 0.05. (b) We can classify the mothers into two groups depending on the level of education they have received at child-birth: the group who have at least received ten years of education (group 1) and the group who have received less than ten years of education (group 2). i. (5 points) Is the difference between the mean age at child-birth in group 1 and that in group 2 greater than 3 years? Please test it at 0.05 level of significance. ii. (2 points) Is the difference between the mean age at child-birth in group 1 and that in group 2 greater than 2 years? Please test it at 0.05 level of significance. iii. (3 points) Please construct a 99% confidence interval for the mean difference of ages at child-birth in group 1 and group 2. (c) The smoke history and alcohol consumption history of these mothers before giving birth are available. i. (2 points) Please construct a contingency table to cross-tabulate and summarize the smoke history and alcohol consumption history before child-birth. ii. (5 points) Please test whether the smoke history is associated with the alcohol consumption are associated (equivalently whether the smoke history was different with these two groups of mother who consumed alcohol before child-birth and who did not) at the significance level = 0.05. Please Give the Answers and Show Screenshots of the R Code used in R Studio. Here are the files Data-Dive.txt and Data-Bfeed.txt in a Zipped Folder that are needed (I have confirmed this link works): http://www.mediafire.com/file/np8jh3fmoci2n33/A2.zip/file This is due in 3 days so im hoping i could get some help
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started