In frequency matching, researchers first identify the key confounding variables that need to be controlled. These variables could include age, gender, socioeconomic status, or other factors that might influence the outcome. Once the confounding variables are identified, researchers then determine their distribution in the population of interest. For each stratum (e.g., age group) of the confounding variable, researchers ensure that the same proportion of cases and controls is included.