I'm in the process of cleaning up my data set and am hitting a road block in trying to create a dichotomous variable from a continuous. I generated a new variable looking at days until readmission. Within that I want to have days < 7 = 0 and days >7 = 1. Does having blanks for those patients who never got readmitted matter? I've tried both a replace command and recode command:
i.e. recode days_until_readmission min/7=0 8/max=1 ; then I get the following error: recode only allows numerical variables.
Any thoughts? Thanks.