Saturday, 30 November 2013

McNemar's Test Calculator

This blog post implements an online McNemar's Test on a 2 by 2 contingency table.

Referring to the contingency table below, the Null Hypothesis for the McNemar test is that the marginal probability of Test 1 being positive is equal to the marginal probability of Test 2 being positive as well. The Null Hypothesis is also that the marginal probability of Test 1 being negative is equal to the marginal probability of Test 2 being negative. If we denote the following:

  1. $p_a$=Probability of Test 1 being positive and Test 2 being positive
  2. $p_b$=Probability of Test 1 being positive and Test 2 being negative
  3. $p_c$=Probability of Test 1 being negative and Test 2 being positive
  4. $p_d$=Probability of Test 1 being negative and Test 2 being negative

The Null Hypothesis is $p_a+p_b=p_a+p_c$ or $p_b+p_d=p_c+p_d$, which leads to $p_b=p_c$. In other words, the Null Hypothesis depends on only the off-diagonal terms of the contingency table.

A low value of the calculated p-value (< 0.05) could be considered a significant result, rejecting the Null Hypothesis.

Please fill in the four text areas with integers greater than or equal to zero.

Test 2 positive: Test 2 negative:
Test 1 positive:

Row Sum 1

Test 1 negative:

Row Sum 2

Column Sum 1

Column Sum 2


Results pending...

1 comment:

  1. Hiv disease for the last 3 years and had pain hard to eat and cough are nightmares,especially the first year At this stage, the immune system is severely weakened, and the risk of contracting opportunistic infections is much greater. However, not everyone with HIV will go on to develop AIDS. The earlier you receive treatment, the better your outcome will be.I started taking ARV to avoid early death but I had faith in God that i would be healed someday.As a Hiv patent we are advise to be taking antiretroviral treatments to reduce our chance of transmitting the virus to others , few weeks ago i came on search on the internet if i could get any information on Hiv treatment with herbal medicine, on my search i saw a testimony of someone who has been healed from Hiv her name was Achima Abelard and other Herpes Virus patent Tasha Moore also giving testimony about this same man,Called Dr Itua Herbal Center.I was moved by the testimony and i contacted him by his . We chatted and he send me a bottle of herbal medicine I drank it as he instructed me to.After drinking it he ask me to go for a test that how i ended my suffering life of Hiv patent,I'm cured and free of Arv Pills.I'm forever grateful to him Drituaherbalcenter.Here his contact Number +2348149277967...He assure me he can cure the following disease..Hiv,Cancer,Herpes Virus,Hpv,Pile,Weak Erection,Lyme Disease,Epilepsy,Glaucoma.,Brain Tumor,psoriasis, Cataracts,Macular degeneration,Cardiovascular disease,Chronic Diarrhea,Lung disease.Enlarged prostate,Osteoporosis.Alzheimer's disease,
    Dementia. ,Bladder Cancer,Autism,Colorectal Cancer,Breast Cancer,Kidney Cancer,Leukemia,Lung Cancer,Tay tach disease,Non Hodgkin Lymphoma,Skin Cancer,Lupus,Uterine Cancer,Prostate Cancer, Seizures, fibromyalgia ,ALS,Hepatitis,Copd,Parkinson disease.Genetic disease,Fibrodysplasia disease,Fibrodysplasia Ossificans Progressiva,Fluoroquinolone Toxicity Syndrome,Stroke,Hpv,Weak Erection,Liver/Kidney Inflammatory,Men/Woman infertility, bowel disease ,Huntington's disease ,Diabetes,Fibroid.