Example Of A Categorical Variable. Gender Male Female Brand of soaps Dove Olay Hair color Blonde Brunette Brown Red etc. The totals for each category also known as marginal distributions provide the number of individuals in each row or column without accounting for the effect of the other variable in the example above the total number of individuals with blue eyes regardless of hair color is 5. It is difficult to count or measure categorical data using numbers and therefore they are divided into categories. In the dataset categorical variables are often strings.
Brands of cereal and binary outcomes eg. In this example 1 means female and 2 means male. Dsex. Children per Household Section A census asks every household in a city how many children under the age of 18 reside there. Categorical data describes categories or groups. In our previous post nominal vs ordinal data we provided a lot of examples of nominal variables nominal data is the main type of categorical data.
The sample contains 20 female patients and 19 male patients.
BMI is a ratio of weight and height and hence is a measurement. The Categorical Variable. Finishing places in a race classifications eg. BMI is a ratio of weight and height and hence is a measurement. Another instance of categorical variables is answers to yes and no questions. Demographic information of a population.