I have actually used this exact approach against someone who pulled a knife on me, and it worked like a charm. Many victims of crime remain silent for some reason, and if you yell you not only attract attention, but the attacker finds the situation uncomfortable. Certainly mine did.