It can help to determine if your erectile dysfunction is related to psychological or physical causes. 1  Psychological exam. 2  Your doctor might ask questions to screen for depression and other possible psychological causes of erectile dysfunction.