Previous: Convergence Up: mlogit.bayes: Bayesian Multinomial Logistic Next: Model

Examples

  1. Basic Example
    Attaching the sample dataset:

    Estimating multinomial logistics regression using mlogit.bayes:

    Checking for convergence before summarizing the estimates:





    Setting values for the explanatory variables to their sample averages:

    Simulating quantities of interest from the posterior distribution given x.out.



  2. Simulating First Differences
    Estimating the first difference (and risk ratio) in the probabilities of voting different candidates when pristr (the strength of the PRI) is set to be weak (equal to 1) versus strong (equal to 3) while all the other variables held at their default values.







Gary King 2007-06-01