Improving the analysis of designed studies by combining statistical modelling with study design information