A recent study of all adult twins in Sweden (more than 7,600 twins)
[8] found that same-sex behavior was explained by both heritable factors and individual-specific environmental sources (such as prenatal environment, experience with illness and trauma, as well as peer groups, and sexual experiences), while influences of shared-environment variables such as familial environment and societal attitudes had a weaker, but significant effect. Women showed a statistically non-significant trend to weaker influence of hereditary effects, while men showed no effect of shared environmental effects. The use of all adult twins in Sweden was designed to address the criticism of volunteer studies, in which a potential bias towards participation by gay twin may influence the results (see below).
Overall, the environment shared by twins (including familial and societal attitudes) explained 0–17% of the choice of sexual partner, genetic factors 18–39% and the unique environment 61–66%. The individual's unique environment includes, for example, circumstances during pregnancy and childbirth, physical and
psychological trauma (e.g., accidents, violence, and disease), peer groups, and sexual experiences. [...] In men, genetic effects explained .34–.39 of the
variance, the shared environment .00, and the individual-specific environment .61–.66 of the variance. Corresponding estimates among women were .18–.19 for genetic factors, .16–.17 for shared environmental, and .64–.66 for unique environmental factors.