Mail a PDF copy of this page to:
(Your email address will not be added to a mailing list)
Skip to main content
Show menu

Case-Control matching

Next selectCase-Control matching


The case-control matching procedure is used to randomly match cases and controls based on specific criteria. MedCalc can match on up to 4 different variables.

In the example we will use the following data:

Case-Control matching

The treated cases are coded 1, the controls are coded 0. For each treated case MedCalc will try to find a control case with matching age and gender.

Required input

For the example data, we complete the dialog box as follows:

Case-Control matching


The results are displayed in a dialog box.

Case-Control matching

The program gives the total number of subjects, number of cases, number of controls and the number of matched cases, i.e. the number of cases for which a matching control has been found.

Next, the mean difference between the matched subjects are given, with mean difference, SD, 95% CI of the difference and associated P-value (paired samples t-test). The 95% confidence intervals should be small and neglectable. P-values should be non-significant. If for one or more variables the confidence interval is large or the P-value is significant, the "maximum allowable difference" entered in the input dialog box (see above) was probably too large.

Save match IDs in spreadsheet column

Click the "Save match IDs..." button to create a new column in the spreadsheet with for each case the identification of the matched control (and vice-versa).

Case-Control matching

A column is added in the spreadsheet:

Case-Control matching

In subsequent statistical analyses this new column can be used in a filter in order to include only cases and controls for which a match was found.

E.g. if the new column has MatchID as a heading, the filter could be MatchID>0 or MatchID<>"" (<> means Not Equal To).

Save as new file with paired data

Click the "Save new file..." button to create a new MedCalc data file in which the data are rearranged as follows:

Case-Control matching

This new datafile will allow to perform statistical tests on paired data.

See also

This site uses cookies to store information on your computer. More info...