Categorical variables are typically measured using surveys, medical records, or observational studies. The data is often collected in a format that allows for easy categorization, such as checkboxes or multiple-choice questions. These measurements can then be analyzed using various statistical methods to identify patterns, associations, and potential causal relationships.