RT Journal Article SR Electronic T1 Power calculator for instrumental variable analysis in pharmacoepidemiology JF bioRxiv FD Cold Spring Harbor Laboratory SP 084541 DO 10.1101/084541 A1 Venexia M Walker A1 Neil M Davies A1 Frank Windmeijer A1 Stephen Burgess A1 Richard M Martin YR 2016 UL http://biorxiv.org/content/early/2016/10/31/084541.abstract AB Background Instrumental variable analysis, for example with physicians’ prescribing preferences as an instrument for medications issued in primary care, is an increasingly popular method in the field of pharmacoepidemiology. Existing power calculators for studies using instrumental variable analysis, such as Mendelian randomisation power calculators, do not allow for the structure of research questions in this field. This is because the analysis in pharmacoepidemiology will typically have stronger instruments and detect larger causal effects than in other fields. Consequently, there is a need for dedicated power calculators for pharmacoepidemiological research.Methods and results The formula for calculating the power of a study using instrumental variable analysis in the context of pharmacoepidemiology is derived before being validated by a simulation study. The formula is applicable for studies using a single binary instrument to analyse the causal effect of a binary exposure on a continuous outcome. A web application is provided for the implementation of the formula by others.Conclusions The statistical power of instrumental variable analysis in pharmacoepidemiological studies to detect a clinically meaningful treatment effect is an important consideration. Research questions in this field have distinct structures that must be accounted for when calculating power.FUNDING STATEMENT This work was supported by the Perros Trust and the Integrative Epidemiology Unit. The Integrative Epidemiology Unit is supported by the Medical Research Council and the University of Bristol [grant number MC_UU_12013/9]. Stephen Burgess is supported by a post-doctoral fellowship from the Wellcome Trust [100114].Key MessagesResearch questions using instrumental variable analysis in pharmacoepidemiology have distinct structures that have previously not been catered for by instrumental variable analysis power calculators.Power can be calculated for studies using a single binary instrument to analyse the causal effect of a binary exposure on a continuous outcome in the context of pharmacoepidemiology using the presented formula and online power calculator.The use of this power calculator will allow investigators to determine whether a pharmacoepidemiology study is likely to detect clinically meaningful treatment effects prior to the study’s commencement.