Testosterone is a sex hormone secreted by the testicles, and is important in regulating the frequency and magnitude of a penile erection.