New evidence that vitamin D prevents headache: a bidirectional two-sample Mendelian randomization analysis
Haibing Xiong, Ran Jiang, Lingzhi Xing, Jiaojiao Zheng, Xinhong Tian, Jiajie Leng, Xin Guo, Shi Zeng, Haofeng Xiong, Jianhong Huo, Letai Li

TL;DR
This study suggests that high vitamin D levels may help prevent headaches, based on genetic analysis.
Contribution
The study provides new evidence of a causal link from vitamin D to headache prevention using Mendelian randomization.
Findings
High vitamin D levels are associated with a reduced risk of headache (OR = 0.848).
No causal link was found from headache to increased vitamin D levels.
MR results showed no heterogeneity or multidimensionality, supporting robust findings.
Abstract
Previous observational clinical studies and meta-analyses have yielded inconsistent results regarding the relationship between vitamin D and headache, and the causal relationship remains unclear. The aim of this study was to investigate the causal relationship between vitamin D and headache by bidirectional two-sample Mendelian randomisation (MR) analysis. The relationship between high levels of vitamin D and headache was investigated by two-sample MR analysis using publicly available genome-wide association study (GWAS) data. The primary method was inverse variance weighting (IVW), and secondary methods were weighted median and MR-Egger methods. No heterogeneity or horizontal multidirectionality was found in the MR results. The robustness and validity of the findings were assessed using the leave-behind method. A significant causal relationship was found between high vitamin D levels…
Genes, proteins, chemicals, diseases, species, mutations and cell lines named across the full text — each resolved to its canonical identifier and authoritative record.
Click any figure to enlarge with its caption.
Figure 1
Figure 2| Exposure | Outcome | MR Egger intercept | Cochran’s heterogeneity | |||||
|---|---|---|---|---|---|---|---|---|
| Intercept value |
| IVW- | Egger- | |||||
| VD | Headache | 99 | 0.002664378 | 0.3248348 | 121.0626 | 0.05703579 | 119.8526 | 0.05772855 |
| Headache | VD | 116 | 0.000534979 | 0.3054296 | 127.4209 | 0.2019028 | 126.2471 | 0.2039701 |
| Exposure | Outcome | SNPs | OR | Low | High | |
|---|---|---|---|---|---|---|
|
| ||||||
| MR Egger | Headache | 99 | 0.793 | 0.012 | 0.664 | 0.947 |
| Weighted median | Headache | 99 | 0.809 | 0.009 | 0.689 | 0.949 |
| IVW | Headache | 99 | 0.848 | 0.007 | 0.752 | 0.956 |
|
| ||||||
| IVW | VD | 116 | 0.996 | 0.437 | 0.986 | 1.006 |
| MR Egger | VD | 116 | 1.001 | 0.953 | 0.991 | 1.008 |
| Weighted median | VD | 116 | 1.001 | 0.906 | 0.994 | 1.006 |
- —Chongqing Science and Health Joint Medical Research Project
Peer Reviews
No public reviews on file for this paper yet. If you reviewed it on a platform where reviews are public (OpenReview, ICLR, NeurIPS, ICML), you can paste yours below so the community can read it here.
Videos
No videos yet. Explain this paper in a talk, walkthrough, or lecture? Add one.
Taxonomy
TopicsVitamin D Research Studies · Diet and metabolism studies · Genetic Associations and Epidemiology
Introduction
Vitamin D is a fat-soluble vitamin that plays several important roles in the body (1). It is mainly synthesised through the skin in the presence of sunlight and can also be ingested through food. Vitamin D promotes the absorption and utilisation of calcium and contributes to normal bone development and maintenance. It plays an important role in immune regulation, cell differentiation and inflammatory responses (2–5). In recent years, studies have increasingly focused on the role of vitamin D in neuropathic pain. Vitamin D receptors are widely distributed in the central and peripheral nervous system, suggesting that vitamin D may play a role in normal nervous system function and nociceptive modulation (6). Several studies have shown an association between vitamin D deficiency and the onset and exacerbation of headache, and that vitamin D supplementation can help alleviate the symptoms of headache (7, 8).
Headache is a common neurological symptom that manifests as pain or discomfort in different areas of the head (9). Its etiology is complex and diverse, including intracranial lesions, vascular abnormalities, infection, inflammation, and metabolic disorders (10). Headache can be divided into two categories: primary and secondary; the former, such as migraine and tension headache, are mostly associated with genetic, endocrine, and environmental factors; the latter is caused by specific diseases, such as brain tumour and cerebrovascular disease. The severity, frequency of attacks and accompanying symptoms of headache vary from person to person and affect the daily life and work of patients (11).
Preliminary studies have investigated the correlation between vitamin D and headache. Some studies have shown that people with lower levels of vitamin D are at greater risk of headaches and have more severe pain (12). In addition, vitamin D supplementation appears to reduce headaches and improve patients’ quality of life (13, 14). Although some relevant studies have shown a correlation between vitamin D and headache, it is difficult to establish a specific causal relationship between the two.
Mendelian randomization (MR) analysis is an emerging statistical method that uses genetic variation as an instrumental variable to explore potential causal relationships between exposure factors and disease. Mendelian randomisation analysis provides a classification effect similar to that of a randomised controlled trial (RCT) by randomly classifying genetic alleles during sperm-egg binding (15). However, MRI analyses provide stronger causal inferences than traditional observational studies and are effective in controlling for the effects of confounding factors (16). Furthermore, there is a lack of magnetic resonance studies exploring the potential causal relationship between vitamin D and headache, suggesting that further research is needed in this area.
The aim of this study was to investigate the potential causal relationship between vitamin D and headache. By integrating existing genome-wide association study (GWAS) data, we aimed to assess the effect of vitamin D levels on the risk of headache onset. This will provide a scientific basis for the development of targeted prevention and treatment strategies.
Methods
The study design
For MR analysis requires a valid instrumental variable (IV) that satisfies three key assumptions to obtain reliable results. Firstly, the IV must be strongly associated with the exposure. Secondly, the IV must be independent of any confounding factors that may affect the exposure and outcome. Finally, the IV must affect the outcome solely through the exposure (17). The study consisted of several core steps, including the use of multiple MR methods (IVW, WM, MR Egger), multiplicity assessment, and heterogeneity and sensitivity analyses. These steps were taken to select genetic IVs associated with exposure and to examine the association between vitamin D levels and headache. To further investigate the causal relationship between vitamin D and headache, a bidirectional two-sample MR study was conducted (see Figure 1). To reduce bias resulting from population stratification and racial differences, we only selected samples from the same racial group. Furthermore, this study followed the latest guidelines for MR in epidemiological studies (STROBE-MR) (18).
Flowchart of Mendelian randomization.
Data sources
The genetic association data for this study were obtained from the IEU Open GWAS database.1 The low level vitamin D dataset (ieu-b-4812) comprises 441,291 participants with a total of 16,668,957 SNPs. The dataset on headaches (finn-b-R18_HEADACHE1) was obtained from the Finngen Consortium and includes 13,345 cases and 172,999 controls.
The selection of IV
To fulfill the initial step of the first hypothesis, we identified single nucleotide polymorphisms (SNPs) that were significantly associated with exposure based on stringent criteria (p < 5 × 10^–8^) and independence (r^2^ < 0.001, kb = 10,000) in order to select genetic IVs that are strongly associated with exposure. However, in a reverse MR analysis with headache as the exposure, no SNPs significantly associated with exposure at p < 5 × 10^–8^ were found. The significance level was set at p < 5 × 10^–6^ for the reverse MR analysis. Furthermore, all SNPs with palindromes and ambiguities were excluded to ensure consistent effect alleles between the exposure and outcome datasets. To evaluate the strength of the instrumental variable (IV), we calculated the F statistic value using the formula F = (N − 2) * R^2^/(1 − R^2^) (19). An F value greater than 10 indicates a low risk of weak IV bias and avoids weak instrumental bias (20).
Statistical analysis
This study used three methods, namely inverse variance weighted (IVW) and MR-Egger, weighted median (WM), to establish the causal relationship between vitamin D and headache. IVW is the dominant method and produces the highest statistical efficacy when all instrumental variables (IVs) are validated tools (20). Criteria for establishing causality include significant results in IVW analyses. The results of WM and MR-Egger analyses should align with those of IVW analyses (21–23).
For sensitivity analyses, we used the MR-Egger intercept to determine the presence of pleiotropy. Intercept values close to 0 and p-values greater than 0.05 indicate no horizontal pleiotropy (24). We then used Cochran’s Q-test to quantify the heterogeneity of the IVW estimates. A p-value greater than 0.05 indicates no heterogeneity (25). The results of the heterogeneity analysis are shown in Table 1. Additionally, we ran the MR-PRESSO test to check for outliers (see Supplementary material). If any outliers were identified, they were removed, and the MR effect was re-evaluated. To ensure the robustness of the results, we also conducted leave-one-out analyses to examine the impact of individual SNPs on the overall causal effect (26). Final funnel plots were used to assess the symmetry of the selected SNPs, while forest plots were used to evaluate the reliability and heterogeneity of chance estimates. Scatter plots were used to visualise the relationship between exposure and outcome. Please refer to the Supplementary material for additional details.
The methodology used in the inverse MR analysis was the same as described above, which involved using SNPs associated with headache to investigate the causal effect of headache and vitamin D. The results of the inverse MR analysis were presented in RStudio. The entire analysis was conducted in R Studio (version 4.3.0) using the “TwoSampleMR” and “MRPRESSO” software packages.
Results
Finally, we included 101 and 121 SNPs in the exposure and outcome datasets, respectively. Two and five SNP deleted due to palindromes, respectively. As shown in Table 2, the results of IVW analysis indicated that high-level vitamin D were significantly associated with an decreased risk of headache (OR = 0.848; p = 0.007; 95% CI = 0.752–0.956). This finding was also supported by WM and MR Egger. The forest plots of SNP effect sizes for each phenotype in the forward analyses are presented in Figure 2. No horizontal pleiotropy was observed for any of the phenotypes (MR Egger intercept, p > 0.05). After removing the palindromic SNPs, there was no heterogeneity observed among the exposure-associated SNPs. The MR-Egger intercept test results indicated no outliers or evidence of horizontal pleiotropy. Additionally, leave-one-out analyses revealed that no single SNP had a potential effect on MR estimates. The funnel plots were essentially symmetrical in both the forward and reverse MR analyses, suggesting no directional horizontal pleiotropy in the selected variables. The Supplementary material display scatter plots, funnel plots, and leave-one-out methods for forward analyses, which can demonstrate the absence of outliers that may affect causality.
(A) Scatterplot of forward Mendelian randomization analysis. (B) Scatter plot of reverse Mendelian randomization analysis.
In the reverse MR analysis, none of the causal relationships between headache and vitamin D were significant when headache was considered as exposure (OR = 1.001; p = 0.906; 95% CI = 0.994–1.006). Table 2 and Figure 2 provided further details. The statistical analysis indicated that there was no significant causal relationship between headache and vitamin D. The Supplementary material include scatterplots, funnel plots, and leave-one-out methods for inverse analyses.
Discussion
This is the first study to explore a bidirectional causal relationship between vitamin D and headache using MR analysis. The results of the MR analysis showed that high levels of vitamin D significantly decreased the risk of headache. Furthermore, reverse MR studies did not find any evidence of a causal relationship between genetically predicted headache and vitamin D levels.
The relationship between vitamin D and headaches remains inconclusive, despite numerous studies exploring the topic. A case-control study conducted in Egypt found a significant vitamin D deficiency in migraine patients, which can significantly impact the character, duration, frequency, and severity of headache attacks (27). Similarly, a study in Turkish children also found a possible link between vitamin D deficiency and headaches (28). A cross-sectional descriptive study conducted in Norway confirmed that patients with headaches had lower average vitamin D levels compared to patients with other types of pain symptoms. Specifically, patients with headaches had a higher incidence of vitamin D deficiency (29). Quintero-Fabián et al. (30) found that vitamin D acts as an immunomodulatory hormone to reduce neuroinflammation and prevent headaches as a neurological disorder. Recent literature suggests that migraine sufferers may have a vitamin D deficiency, and taking vitamin D alongside conventional medication may reduce the frequency of migraine attacks (31). However, further verification of these results by other methods is necessary.
It is important to note that not all research findings support a link between vitamin D and headache. A randomized controlled trial conducted in Norway found that the use of vitamin D supplements did not have a significant effect on the occurrence and extent of pain or headache (32). Furthermore, a recent meta-analysis did not find any relationship between cluster headache and the three single nucleotide polymorphisms of the vitamin D receptor gene (33). The researchers also noted the lack of articles exploring the relationship between vitamin D and headaches. The relationship between vitamin D and headaches remains a controversial issue for objective reasons.
The varying results could be attributed to the fact that the majority of the studies were observational or meta-analyses and lacked the support of prospective randomized studies. Observational studies have inherent limitations, such as methodological flaws, selection bias, and insufficient adjustment for confounders, which make it difficult to establish a clear causal link. Mendelian randomization is a research methodology that can reveal the causal relationship between exposure and outcome by using genetic variation as an instrumental variable. This approach avoids the influence of non-heritable environmental factors. The study found a significant causal relationship between vitamin D and headache using two-sample MR analysis. A reverse MR study further confirmed this finding’s robustness. Our study did not find significant levels of pleiotropy or heterogeneity, which increases the credibility and reliability of our findings.
However, it is worth noting that MR studies have limitations. Firstly, existing databases lack data on different levels of vitamin D, making it difficult to explore the specific association between vitamin D levels and headache. Secondly, as our GWAS data is primarily derived from European populations, our findings may exhibit some racial or geographic bias and require further validation in other ethnic groups. It is expected that more high-quality studies and data will be published in the future to provide additional insight into the relationship between vitamin D and headache. Further research and technological advances may reveal the exact link between the two, leading to new ideas and approaches for preventing, testing, and treating headache.
Data availability statement
The datasets presented in this study can be found in online repositories. The names of the repository/repositories and accession number(s) can be found in the article/Supplementary material.
Ethics statement
Ethical review and approval was not required for the study on human participants in accordance with the local legislation and institutional requirements. Written informed consent from the patients/participants or patients/participants’ legal guardian/next of kin was not required to participate in this study in accordance with the national legislation and the institutional requirements.
Author contributions
HiX: Funding acquisition, Investigation, Writing – original draft, Writing – review & editing, Methodology. RJ: Software, Writing – review & editing. LX: Investigation, Software, Writing – original draft, Writing – review & editing. JZ: Software, Writing – original draft, Writing – review & editing. XT: Investigation, Writing – original draft. JL: Methodology, Writing – original draft. XG: Data curation, Writing – original draft. SZ: Methodology, Writing – original draft. HoX: Formal analysis, Writing – original draft. JH: Writing – original draft. LL: Data curation, Formal analysis, Methodology, Supervision, Writing – original draft, Writing – review & editing, Investigation.
The reference list from the paper itself. Each links out to its DOI / PubMed record.
- 1Delrue C Speeckaert MM. Vitamin D and vitamin D-binding protein in health and disease. Int J Mol Sci. (2023) 24:4642. doi: 10.3390/ijms 24054642, PMID: 36902073 PMC 10003016 · doi ↗ · pubmed ↗
- 2Bouillon R Marcocci C Carmeliet G Bikle D White JH Dawson-Hughes B. Skeletal and extraskeletal actions of vitamin D: current evidence and outstanding questions. Endocr Rev. (2019) 40:1109–51. doi: 10.1210/er.2018-00126, PMID: 30321335 PMC 6626501 · doi ↗ · pubmed ↗
- 3Ismailova A White JH. Vitamin D, infections and immunity. Rev Endocr Metab Disord. (2022) 23:265–77. doi: 10.1007/s 11154-021-09679-5, PMID: 34322844 PMC 8318777 · doi ↗ · pubmed ↗
- 4Mailhot G White JH. Vitamin D and immunity in infants and children. Nutrients. (2020) 12:1233. doi: 10.3390/nu 12051233, PMID: 32349265 PMC 7282029 · doi ↗ · pubmed ↗
- 5Carlberg C Muñoz A. An update on vitamin D signaling and cancer. Semin Cancer Biol. (2022) 79:217–30. doi: 10.1016/j.semcancer.2020.05.018, PMID: 32485310 · doi ↗ · pubmed ↗
- 6Habib AM Nagi K Thillaiappan NB Sukumaran V Akhtar S. Vitamin D and its potential interplay with pain signaling pathways. Front Immunol. (2020) 11:820. doi: 10.3389/fimmu.2020.00820, PMID: 32547536 PMC 7270292 · doi ↗ · pubmed ↗
- 7Nowaczewska M Wiciński M Osiński S Kaźmierczak H. The role of vitamin D in primary headache-from potential mechanism to treatment. Nutrients. (2020) 12:243. doi: 10.3390/nu 12010243, PMID: 31963460 PMC 7019347 · doi ↗ · pubmed ↗
- 8Dell’Isola GB Tulli E Sica R Vinti V Mencaroni E Di Cara G. The vitamin D role in preventing primary headache in adult and pediatric population. J Clin Med. (2021) 10:5983. doi: 10.3390/jcm 10245983, PMID: 34945279 PMC 8709239 · doi ↗ · pubmed ↗
