// include: wf4-include-3digit-recode.doi // used by: wf4-include.do // task: recode 97 98 99 // project: workflow chapter 4 // author: scott long \ 2008-04-09 // note: code assumes that local varname is defined // with the name of the variable to be recoded. clonevar `varname'R = `varname' replace `varname'R = .a if `varname'R==997 replace `varname'R = .b if `varname'R==998 replace `varname'R = .c if `varname'R==999 tabulate `varname' `varname'R, miss nol