Example: (From Categorical Data Analysis, by A. Agresti, 2002, 3rd edi.) The following table is f...
Write an R function to produce a confidence interval for the log odds ratio for a 2 by 2 table. Write it so it adds 1 to each cell by default if the cell frequencies are too small using the criterion in the textbook from table 2.3. Post the code for the function followed with a few illustrative examples. Include comments in the function that explain the arguments and how to specify them. 2.2 COMPARING PROPORTIONS IN TWO-BY-TWO TABLES Table...
A study occurred to test whether taking aspirin can reduce the chance of having a heart attack. Over 20000 male medical doctors aged 40 through 84 were given a 325 mg tablet every other day. Just over half of the doctors (11037) were given aspirin tablets; the rest (11034) were given placebos. There were 104 heart attacks in the aspirin group and 189 in the placebo group. Analyze!!!! (By which I mean perform a relevant hypothesis test and/or construct an...
STAT 202 Assignment 3 A Swedish study used 1360 patients who had suffered from a stroke. The study randomly assigned each subject to an aspirin treatment or a placebo treatment. The contingency table shows the results of the study, where X is the number of deaths due to heart attack during a follow-up period of about 3 years. Sample 1 received the placebo and sample 2 received aspirin. 1. Group Placebo Aspirin 38 18 684 676 Find a 95% confidence...
1. In the regression equation, the value that gives the amount by which Y changes for one unit in X is called the (a) coefficient of correlation. (b) coefficient of determination. (c) slope. (d) intercept. 2. For any two categorical variables, X and Y, the best way to determine if they are related is to (a) calculate the correlation between X and Y. (b) draw a scatterplot of the X and Y values. (c) make a two-way table of the...