Ask Statistics and Probability Expert

Problem Set: χ2 tests and measures of association

For this module's Problem Set, please complete the problems listed below.

For your write-up, copy and paste the Stata Results into a word-processed document and add your interpretation and conclusion in the places indicated.

For each problem, check the conditions required for the χ2 test, using the expected counts under the null hypothesis.

The first problem asks you to calculate the expected counts and the χ2 test statistic from the formulas and to find the P value using Stata's chi2tail function or SurfStat.

You may, of course, use Stata's  tabi command to check those 'hand' calculations.

For the rest of the problems, useStata'stabi command to do the calculations.

Part 1: tumors in male rats exposed and not exposed to electromagnetic fields

treatment

1 or more tumors

No tumors

total

control: no exposure

16

83

99

2 gauss exposure

30

70

100

1. State the null and alternative hypotheses for the χ2 test.

2. Find the expected counts under the null hypothesis.

3. Use the expected counts to check the assumptions needed to use the χ2 distribution to find the P value.

4. Calculate the test statistic from the observed and expected counts.

5. Use Stata's chi2tail function or SurfStat to find the P value.

6. State the conclusion in words.

7. Show that the χ2 test statistic you've calculated is equal to the square of the z test statistic you calculated in part 3, question 4 of problem set 7.

Calculation from part 3, question 4:

The null hypothesis that the population mean of number of migraine headaches suffered over a three-week period is at least as large for people who have had eight weeks of acupuncture therapy as for people who have no treatment. Because we would like the data to be able to establish that acupuncture therapy is effective in reducing the number of migraines suffered if it is effective, the alternative hypothesis is the one-sided hypothesis that people receiving acupuncture therapy suffer fewer migraines than people who are not treated. For the sample mean difference of 1.2 fewer migraines suffered by people who received acupuncture therapy, the t statistic was 2.31, associated with a p value of 0.01 for the one-sided alternative hypothesis of interest. Thus, the sample provides evidence that is stronger than rejection of the null at the 0.05 level of significance, and we conclude that people who use acupuncture therapy suffer statistically significantly fewer migraine headaches on average over a three-week period. The 95% confidence interval for the population difference in the mean number of headaches, untreated people minus acupuncture patients, is [0.169, 2.231], which implies that we can be 95% confident that the difference in population means is in that interval.

Here is the Stata command for the χ2 test: tabi 16 83 \ 30 70, row exp chi2

Part 2: intensive treatment for type 1 diabetes: the DCCT study                

The data:

378 patients in conventional care group and 348 in intensive care group were monitored for 6 years. At end of the study, 91 patients in the conventional treatment group had developed retinopathy, compared with only 23 in the intensive treatment group.

About 24% of patients receiving conventional treatment but only about 7% of patients receiving the intensive treatment developed retinopathy during year s of the study.

Data: Patients who already had retinopathy at the beginning of the study:

 

progression

no progression

total

conventionaltmt

143

 

352

intensivetmt

77

 

363

1. Fill in the missing values in the table above.                                                                   

2. Calculate the proportions of patients who progressed in each group.                                

3. Use the conditional probabilities you calculated in question 2 to estimate the risk difference and the relative risk, considering the conventional treatment as the "exposure."

4. State the null and alternative hypotheses for the χ 2 test in terms of the risk difference and the relative risk.

5. Create an appropriate Stata tabi command to get expected counts to check the assumptions and explain why the χ2 distribution and the normal approximation may be used to find the P value for tests.     

Use Stata's chi2tail function to find the P value.

6. Interpret the χ2 test: State the P value from the Stata output and state the conclusion in the context of this problem, using either the relative risk or the risk difference.  (Use α = .05)

7. Explain why the normal approximation may be used to find confidence intervals for the risk difference.

Here is the form of the csi command to use for this problem, with the conventional treatment as "exposed" and the retinopathy progression as "cases":

csi 143 77 209 286

Paste your Stata Results here:

You should recognize the P(progression | conventional tmt) and P(progression | intensive)  and their difference.

8. Write a short summary for the confidence interval for the risk difference.

9. Write a short summary for the confidence interval for the relative risk, which Stata calls the "risk ratio."

Statistics and Probability, Statistics

  • Category:- Statistics and Probability
  • Reference No.:- M92273732

Have any Question?


Related Questions in Statistics and Probability

Introduction to epidemiology assignment -assignment should

Introduction to Epidemiology Assignment - Assignment should be typed, with adequate space left between questions. Read the following paper, and answer the questions below: Sundquist K., Qvist J. Johansson SE., Sundquist ...

Question 1 many high school students take the ap tests in

Question 1. Many high school students take the AP tests in different subject areas. In 2007, of the 144,796 students who took the biology exam 84,199 of them were female. In that same year,of the 211,693 students who too ...

Basic statisticsactivity 1define the following terms1

BASIC STATISTICS Activity 1 Define the following terms: 1. Statistics 2. Descriptive Statistics 3. Inferential Statistics 4. Population 5. Sample 6. Quantitative Data 7. Discrete Variable 8. Continuous Variable 9. Qualit ...

Question 1below you are given the examination scores of 20

Question 1 Below you are given the examination scores of 20 students (data set also provided in accompanying MS Excel file). 52 99 92 86 84 63 72 76 95 88 92 58 65 79 80 90 75 74 56 99 a. Construct a frequency distributi ...

Question 1 assume you have noted the following prices for

Question: 1. Assume you have noted the following prices for paperback books and the number of pages that each book contains. Develop a least-squares estimated regression line. i. Compute the coefficient of determination ...

Question 1 a sample of 81 account balances of a credit

Question 1: A sample of 81 account balances of a credit company showed an average balance of $1,200 with a standard deviation of $126. 1. Formulate the hypotheses that can be used to determine whether the mean of all acc ...

5 of females smoke cigarettes what is the probability that

5% of females smoke cigarettes. What is the probability that the proportion of smokers in a sample of 865 females would be greater than 3%

Armstrong faber produces a standard number-two pencil

Armstrong Faber produces a standard number-two pencil called Ultra-Lite. The demand for Ultra-Lite has been fairly stable over the past ten years. On average, Armstrong Faber has sold 457,000 pencils each year. Furthermo ...

Sppose a and b are collectively exhaustive in addition pa

Suppose A and B are collectively exhaustive. In addition, P(A) = 0.2 and P(B) = 0.8. Suppose C and D are both mutually exclusive and collectively exhaustive. Further, P(C|A) = 0.7 and P(D|B) = 0.5. What are P(C) and P(D) ...

The time to complete 1 construction project for company a

The time to complete 1 construction project for company A is exponentially distributed with a mean of 1 year. Therefore: (a) What is the probability that a project will be finished in one and half years? (b) What is the ...

  • 4,153,160 Questions Asked
  • 13,132 Experts
  • 2,558,936 Questions Answered

Ask Experts for help!!

Looking for Assignment Help?

Start excelling in your Courses, Get help with Assignment

Write us your full requirement for evaluation and you will receive response within 20 minutes turnaround time.

Ask Now Help with Problems, Get a Best Answer

Why might a bank avoid the use of interest rate swaps even

Why might a bank avoid the use of interest rate swaps, even when the institution is exposed to significant interest rate

Describe the difference between zero coupon bonds and

Describe the difference between zero coupon bonds and coupon bonds. Under what conditions will a coupon bond sell at a p

Compute the present value of an annuity of 880 per year

Compute the present value of an annuity of $ 880 per year for 16 years, given a discount rate of 6 percent per annum. As

Compute the present value of an 1150 payment made in ten

Compute the present value of an $1,150 payment made in ten years when the discount rate is 12 percent. (Do not round int

Compute the present value of an annuity of 699 per year

Compute the present value of an annuity of $ 699 per year for 19 years, given a discount rate of 6 percent per annum. As