Biostatistics, help deciding on a test

  • Thread starter Thread starter Mogarrr
  • Start date Start date
  • Tags Tags
    Statistics Test
Join the discussion
Registration is free. Ask a follow-up in this thread, or start your own.
3 replies · 2K views
Mogarrr
Messages
120
Reaction score
6

Homework Statement


Refer to Table 2.11.
10.6 What significance test can be used to assess whether there is a relationship between receiving an antibiotic and receiving an antibiotic culture while in the hospital?

Here's my attempt of recreating the table:
[itex]\newcommand\T{\Rule{0pt}{1em}{.3em}}<br /> \begin{array}{|c|c|c|}<br /> \hline ID & Antibiotic(1=Yes,2=NO) & Culture(1=Yes,2=NO) \T \\\hline<br /> 1 \T & 2 & 2 \\\hline<br /> 2 \T & 2 & 1 \\\hline<br /> 3 \T & 2 & 2 \\\hline<br /> 4 \T & 2 & 2 \\\hline<br /> 5 \T & 2 & 2 \\\hline<br /> 6 \T & 1 & 2 \\\hline<br /> 7 \T & 1 & 1 \\\hline<br /> 8 \T & 2 & 2 \\\hline<br /> 9 \T & 2 & 2 \\\hline<br /> 10 \T & 2 & 1 \\\hline<br /> 11 \T & 2 & 1 \\\hline<br /> 12 \T & 2 & 2 \\\hline<br /> 13 \T & 1 & 2 \\\hline<br /> 14 \T & 1 & 1 \\\hline<br /> 15 \T & 2 & 1 \\\hline<br /> 16 \T & 2 & 2 \\\hline<br /> 17 \T & 1 & 2 \\\hline<br /> 18 \T & 2 & 2 \\\hline<br /> 19 \T & 1 & 2 \\\hline<br /> 20 \T & 2 & 2 \\\hline<br /> 21 \T & 2 & 2 \\\hline<br /> 22 \T & 1 & 2 \\\hline<br /> 23 \T & 2 & 2 \\\hline<br /> 24 \T & 2 & 2 \\\hline<br /> 25 \T & 2 & 2 \\\hline<br /> \end{array}[/itex]

Homework Equations



Two tests from this chapter are McNemar's Test and a Chi-Square Test for Independence

The Attempt at a Solution



I have no idea which test to use. Since the problem is asking for a test for association, I would think a chi-square test is appropriate, however the nature of the data makes me question that. I would think that, since we are looking at the same subject in the table, this is a dependent sample. However, the null hypothesis for McNemar's test is that the marginal probabilities are equal or that the probability of each type of discordant pair are equal. The problem isn't asking that, just asking if there is a relationship?

Any help would be greatly appreciated.
 
Physics news on Phys.org
I would tend to agree with the Chi squared test.
You are testing for dependence.
 
  • Like
Likes   Reactions: Mogarrr
Mogarrr said:

Homework Statement


Refer to Table 2.11.
10.6 What significance test can be used to assess whether there is a relationship between receiving an antibiotic and receiving an antibiotic culture while in the hospital?

Here's my attempt of recreating the table:
[itex]\newcommand\T{\Rule{0pt}{1em}{.3em}}<br /> \begin{array}{|c|c|c|}<br /> \hline ID & Antibiotic(1=Yes,2=NO) & Culture(1=Yes,2=NO) \T \\\hline<br /> 1 \T & 2 & 2 \\\hline<br /> 2 \T & 2 & 1 \\\hline<br /> 3 \T & 2 & 2 \\\hline<br /> 4 \T & 2 & 2 \\\hline<br /> 5 \T & 2 & 2 \\\hline<br /> 6 \T & 1 & 2 \\\hline<br /> 7 \T & 1 & 1 \\\hline<br /> 8 \T & 2 & 2 \\\hline<br /> 9 \T & 2 & 2 \\\hline<br /> 10 \T & 2 & 1 \\\hline<br /> 11 \T & 2 & 1 \\\hline<br /> 12 \T & 2 & 2 \\\hline<br /> 13 \T & 1 & 2 \\\hline<br /> 14 \T & 1 & 1 \\\hline<br /> 15 \T & 2 & 1 \\\hline<br /> 16 \T & 2 & 2 \\\hline<br /> 17 \T & 1 & 2 \\\hline<br /> 18 \T & 2 & 2 \\\hline<br /> 19 \T & 1 & 2 \\\hline<br /> 20 \T & 2 & 2 \\\hline<br /> 21 \T & 2 & 2 \\\hline<br /> 22 \T & 1 & 2 \\\hline<br /> 23 \T & 2 & 2 \\\hline<br /> 24 \T & 2 & 2 \\\hline<br /> 25 \T & 2 & 2 \\\hline<br /> \end{array}[/itex]

Homework Equations



Two tests from this chapter are McNemar's Test and a Chi-Square Test for Independence

The Attempt at a Solution



I have no idea which test to use. Since the problem is asking for a test for association, I would think a chi-square test is appropriate, however the nature of the data makes me question that. I would think that, since we are looking at the same subject in the table, this is a dependent sample. However, the null hypothesis for McNemar's test is that the marginal probabilities are equal or that the probability of each type of discordant pair are equal. The problem isn't asking that, just asking if there is a relationship?

Any help would be greatly appreciated.

You could use either a NcNemar or a chi-squared test, but since the sample size is small, those will be inaccurate. If you can, you should try Fisher's exact test. See, eg., http://yatani.jp/teaching/doku.php?id=hcistats:chisquare .
 
Last edited:
I have an exact test for small samples, however I wanted to talk about one more thing concerning this problem. I just learned that McNemar's test can be viewed as a within Chi-Squared Test.

Do you think this data is an example of a within-subject design?