TUESDAY, Aug. 16, 2016 (HealthDay News) -- If your significant other is depressed, you are at increased risk for chronic pain, a new study suggests.

Researchers analyzed data from more than 100,000 people in the U.K. They found that chronic pain is caused partly by genetics and partly by still-unknown risk factors shared by partners or spouses.

They also found that chronic pain and depression share common causes. Some are genetic and some stem from the environment the people share.

Researchers said chronic pain is poorly understood. The findings offer new insight and could help lead to improved diagnostic tests and treatments, they added.

"We hope our research will encourage people to think about the relationship between chronic pain and depression and whether physical and mental illnesses are as separate as some believe," study author Andrew McIntosh said in a University of Edinburgh news release.

McIntosh is chairman of biological psychiatry at the university and associate director of the Scottish Mental Health Research Network.

The study was published Aug. 16 in the journal PLoS Medicine.