Unfortunately most studies in the farming environment do not report the prevalence of parental history. Neither did they report the effect size of parental genetic risk in the farming population. This is, however, a critical issue as the so called healthy worker effect (HEW) may be a rather trivial explanation of the results.
Specifically, it is a sampling bias: the kind of subjects that voluntarily enroll in a clinical trial and actually follow the experimental regimen are not representative of the general population. They can be expected, on average, to be healthier as they are concerned for their health [or as ill people already dropped out]
At least Braun-Fahrländer 1999 reported that allergic parents were seen much less at farms. Consecutively history of allergy at farms is no more a risk factor as it is otherwise reduced compared to the general population – no diseased parent, no increased risk. So lets see if there are any further studies in adults?
I know of three studies (plus a review Le Moual N 2008).
Leynaert 2001 showed only a slightly reduced prevalence of “allergy” (39.1% vs 41.5%, NS). Her table 4 is most interesting. The association started only after year 1960 which points towards severe misclassification as far as the analysis is not stratified by year of birth.
Remes 2002 showed a dose dependent effect decline between farming (36.2%) and controls (31.6%, P=0.075),
Perkin 2006 also found some significant lower prevalence in farmers 47.3% versus 57.7%, P<0.001. HWE is therefore likely.
I found further six studies (Thelin 1994, Braback 2006, Chenard 2007, Thaon 2011, Elholm 2013 and Spierenburg 2015) that examined in detail a possible relationship of HWE, allergy and farming. Unfortunately the examination period in five of these studies is too short to make any conclusion while Braback 2006 seems to be the only reliable study.
From this study, we can safely conclude, that there is a significant HWE.
Addendum 22 Nov 2019
It seems that I missed some papers on HWE and farming.
Timm 2019 is a hard to understand cluttered 3 generation study of unclear asthma type. Point estimates of parental asthma on farm upbringing are not really a measure of HWE – shuffling exposure and outcome distorts temporality. In contrast to the interpretation of the authors, I see a clear effect if both parents are born on a farm and one parent has asthma. The RR drops here to 0.33 that their child will be raised on a farm.
Vogelzang 1999: 400 pig farmers, X-sectional point estimates, not a real HWE study, although HWE offered as explanation.
Health-based selection of nonasthmatics for pig farming, which tends to mask a work-related hazard for asthma, is offered as an explanation for these results.
Eduard 2015: compares asthma prevalence of 313 Danish farm children to their 518 sibs (which is identical) but useless, as affected parents would basically dropout all children.
There is even a second comparison of Norwegian farmers with a clear effect. Instead of comparing the early retired farmers with their respective age cohort they invented a c complicated quantile logitic regression in 4 year intervals. Detailed model parameter and significance levels are missing.
At least the conclusion was
A healthy survivor selection was observed in Norwegian farmers, but it was too small to fully explain the reduced risk of asthma observed in this population. A strong selection effect was observed among farmers who had changed production type