“In this case, masturbation is governed by the goat-God of nature, who “invented” it, and is an expression of him. This mythological statement says that masturbation is an instinctual, natural activity invented by the goat for the shepherd. It says further that masturbation is significant and divinely sanctioned. Because it belongs to a God, the activity is mimetic to the God, conjuring him and summoning him in the concrete body. Masturbation is a way of enacting Pan.
In our culture, let us remember, masturbation is attributed to Onan whom God struck dead, and not to Pan who was himself a god.
–W.H. Roscher, Pan and the Nightmare: Ephialtes–A Pathological-Mythological Treatise on the Nightmare in Classical Antiquity, & An Essay on Pan by James Hillman, 1972. Pp. xxxiv. (James Hillman, “An Essay on Pan.”)