Star formation in close pairs selected from the Sloan Digital Sky Survey