The categorical replacement is the exact observed mode.
Use only observed colors
The observed colors are red, blue, and red. The missing color is not counted when choosing the mode.
observed colors=(red,blue,red)
Count the exact mode
Red appears 2 times, and blue appears 1 time. The pinned mode is red.
red count=2,blue count=1
Pin the categorical policy
The categorical policy is explicit: color missing uses the observed mode red.
color ? uses red