**[R] epitab** -- Tables for epidemiologists (mcc and mcci)

__Syntax__

**mcc** *var_exposed_case* *var_exposed_control* [*if*] [*in*] [*weight*] [**,**
__l__**evel(***#***)**]

**mcci** *#a #b #c #d* [**,** __l__**evel(***#***)**]

**fweight**s are allowed; see weight.

__Menu__

__mcc__

**Statistics > Epidemiology and related > Tables for epidemiologists >**
**Matched case-control studies**

__mcci__

**Statistics > Epidemiology and related > Tables for epidemiologists >**
**Matched case-control calculator**

__Description__

**mcc** is used with matched case-control data. It calculates McNemar's
chi-squared; point estimates and confidence intervals for the difference,
ratio, and relative difference of the proportion with the factor; and the
odds ratio and its confidence interval. **mcci** is the immediate form of
**mcc**; see immed. Also see **[R] clogit** and **[R] symmetry** for related
commands.

__Option__

+---------+
----+ Options +----------------------------------------------------------

**level(***#***)** specifies the confidence level, as a percentage, for confidence
intervals. The default is **level(95)** or as set by **set level**.

__Examples__

Setup
**. webuse mccxmpl**

List the data
**. list**

Calculate odds ratio, etc.
**. mcc case control [fw=pop]**

Immediate form of above command
**. mcci 8 8 3 8**

Same as above command, but report 90% confidence intervals rather than
95%
**. mcci 8 8 3 8, level(90)**

__Stored results__

**mcc** and **mcci** store the following in **r()**:

Scalars
**r(p_exact)** two-sided p-value for McNemar's test
**r(or)** odds ratio
**r(lb_or)** lower bound of CI for **or**
**r(ub_or)** upper bound of CI for **or**
**r(D_f)** difference in proportion with factor
**r(lb_D_f)** lower bound of CI for **D_f**
**r(ub_D_f)** upper bound of CI for **D_f**
**r(R_f)** ratio of proportion with factor
**r(lb_R_f)** lower bound of CI for **R_f**
**r(ub_R_f)** upper bound of CI for **R_f**
**r(RD_f)** relative difference in proportion with factor
**r(lb_RD_f)** lower bound of CI for **RD_f**
**r(ub_RD_f)** upper bound of CI for **RD_f**
**r(chi2)** chi-squared