Stata 15 help for mcc

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

Syntax

mcc var_exposed_case var_exposed_control [if] [in] [weight] [, level(#)]

mcci #a #b #c #d [, level(#)]

fweights 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


© Copyright 1996–2018 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index