Dichotomous
A variable with exactly two values. Dichotomous means “split in two”. It is usually stored as 0 and 1. The mean of the 0/1 values is then the proportion of 1s.
Example: Smoking: no = 0, yes = 1. With 8 yes answers among 20 people the mean is 0.4, a proportion of 40%.
Caution: If a variable with many levels is split into two groups at a cut-off, information is lost. Two groups are not the same as a measured quantity.