PharmIV: power calculator for instrumental variable analysis in pharmacoepidemiology

Stata and R packages to calculate the power of an instrumental variable analysis study using a single binary instrument Z to analyse the causal effect of a binary exposure X on a continuous outcome Y in the context of pharmacoepidemiology.