Need Multinomial Logistic Regression in Excel?

QI Macros can do it for you!

Run Multinomial Logistic Regression using QI Macros

  1. Select your data.
  2. Click on QI Macros menu > Statistical Tools > Regression & Other Statistics > Logistic Regression.
  3. QI Macros will do the math and analysis for you.

What is Multinomial Logistic Regression Analysis?

Multinomial Logistic Regression (a.k.a., Nominal Logistic Regression) works the same way as binomial logistic regression except there can be 3 OR MORE dependent variables.

One dependent variable is chosen as the comparison variable, while the others are used to find coefficients for prediction.


Example of Multinomial Logistic Regression in Excel using QI Macros

In this example, there are three letter grades achieved and the student’s GPA, pretest score, and participation in new course design. The data was collected from various students over time and the goal is to predict a student's grade using their GPA, pretest score, and type of class.

Multinomial Logistic Regression Example Data

  1. In Excel, select the data in cells A1:D33. (NOTE: The first column of your data must be setup as three or more dependent variables, while the next column(s) in your data set should include your independent variables (e.g., GPA, etc.):

    The sample data shown above is found in QI Macros Help > Open QI Macros Sample Data > statistical.xlsx > Multinomial Logistic Regression tab

  2. Next, click on the QI Macros menu and choose Statistical Tools > Regression & Other Statistics > Logistic Regression:
  3. QI Macros Multinomial Logisitic Regression Tool

    Excel's Solver add-in is used to perform the Coefficients calculations. It must be installed using File-Options-Add-ins.
    If Solver is not enabled in your Excel, OR you are using a Mac, you will be provided with information about how to calculate the Coefficients manually, using Solver.

  4. Evaluate the Logistic Regression results. The comparison variable is "B" and the Coefficients are in cells A3:E5:

    Multinomial Logistic Regression Results

    The formulas necessary to use Solver to get the Coefficients are shown in cells E9:M13.

    Users can change the data in G3:I3 to evaluate their probabilities! If we change class type to (1), the probability of passing goes from 2.6% to 20.9%:

    Multinomial Logistic Regression Change

    Users can also change the ordering of the dependent variables (A3:A5) and rerun Solver to use a different comparison variable:

    Multinomial Logistic Regression Redo

If the independent variables columns contain text or symbols instead of numbers, these will be converted to numbers for analysis:

Multinomial Logistic Regression data text

The resulting Multinomial Logistic Regression will provide a conversion table:

Multinomial Logistic Regression Conversion Table

In this example:

  • The probabilities of passing the test are derived from past data.
  • GPA, pretest results, and class time can be used to predict a student's grade.

Why am I receiving #NUM in my regression output?

You are receiving this output, because your Constraint(s) in Solver need to be either updated or included in your worksheet. This is due to the EXP calculation crashing within Excel.

To add Constraints:

  1. Select Data > Solver in your worksheet.
  2. Choose the Constraint you want to update and select "Add."
  3. Select the bottom row in your Coefficients table (e.g., cells B4:E4), choose <=, and input 500 as your upper Constraint.
  4. Next, select OK - your upper Constraint has now been added.
  5. If your outputs change to values, continue to update the Constraint to the largest value possible before the output values change back to #NUM - then revert the Constraint back to the largest value.

To update Constraints:

  1. Select Data > Solver in your worksheet.
  2. Choose the Constraint you want to update and select "Change."
  3. Next, update your upper Constraint value - start by changing the Constraint to 300 to see if your #NUM output changes to values.
  4. If your outputs change to values, continue to update the Constraint to the largest value possible before the output values change back to #NUM - then revert the Constraint back to the largest value.

NOTE: At this time, we offer Binomial Logistic Regression and Multinomial Logistic Regression.
We do not currently offer Ordinal Logistic Regression.

*Functionality introduced in the October 2023 version of QI Macros*


Stop Struggling with Logistic Regression Analysis!
Start conducting Logistic Regression Analysis in just minutes.

Download a free 30-day trial. Run Logistic Regression Analysis now!

QI Macros can draw these charts too!