The Vitamin D and Type 2 Diabetes ( D2d ) study is a randomized clinical trial designed to examine whether a causal relationship exists between vitamin D supplementation and the development of diabetes in people at high risk for type 2 diabetes .