Mental disorders are the result of both genetic and environmental factors. There is no single genetic switch that when flipped causes a mental disorder. Consequently, it is difficult for doctors to determine a person's risk of inheriting a mental disorder or passing on the disorder to their children.