Creating a dummy variable for regression