Hi, I have 10 variables. All of these variables are dummy, 0 or 1. The original data set is 1 and . in other words, 0 values are denoted as missing (no input).

I know a basic and silly method is:

Code:
replace var1 = 0 if var1 == .
And writing down this code 10 times for different var.

Is there any cool method?