Functions in DesignAnalysis.R are currently specifically built for a demonstration model. Generalize functions to work with any type of design.