Supplementary Materials D_7. MultinomialModels.R