Docsity

Lecture Notes on Multinomial Logit Models | STA 4713, Study notes of Statistics

Toggle sidebar
bg1
Multinomial Logit Models
There are several experiments in the medical and social sciences where the
response variable is nominal with more than two levels.
For example, the University of Texas at San Antonio offers its employees
a choice of 3 health care providers. The choice of the health care provider
may be affected by gender, age, income, and family size.
If the response variable has three or more categories, we may modify the
methods for binary outcomes quite easily. Once again, we will model the odds
of choosing a particular category as a function of the underlying covariates.
Model for three categories: Nominal Scale
Let the three categories of the response variable be coded as 1, 2, and 3.
In the three response category, we will need to construct two logit functions.
We usually refer to one of the three response categories as the baseline, and
form the logits comparing the other two categories with it.
Let us assume that there are p+1 covariates (including the intercept term).
Let xidenote the vector of covariates for the i−th item or individual.
Let pik represent the probability that the response variable takes the value
kfor the i−th item (with covariate xi).
We may formulate the model as
ln "pi1
pi3#=x0
iβ1
ln "pi2
pi3#=x0
iβ2
1
pf3
pf4
pf5
pf8
pf9
pfa
pfd
pfe

Partial preview of the text

Download Lecture Notes on Multinomial Logit Models | STA 4713 and more Study notes Statistics in PDF only on Docsity!

Multinomial Logit Models

There are several experiments in the medical and social sciences where the

response variable is nominal with more than two levels.

For example, the University of Texas at San Antonio offers its employees

a choice of 3 health care providers. The choice of the health care provider

may be affected by gender, age, income, and family size.

If the response variable has three or more categories, we may modify the

methods for binary outcomes quite easily. Once again, we will model the odds

of choosing a particular category as a function of the underlying covariates.

Model for three categories: Nominal Scale

Let the three categories of the response variable be coded as 1, 2, and 3.

In the three response category, we will need to construct two logit functions.

We usually refer to one of the three response categories as the baseline, and

form the logits comparing the other two categories with it.

Let us assume that there are p+1 covariates (including the intercept term).

Let xi denote the vector of covariates for the i − th item or individual.

Let pik represent the probability that the response variable takes the value

k for the i − th item (with covariate xi).

We may formulate the model as

ln

[ p

i 1

pi 3

]

= x′ iβ 1

ln

[ p

i 2

pi 3

]

= x

′

iβ 2

ln

[ p

i 1

pi 2

]

= x′ iβ 3

Clearly, the third equation may be obtained from the first two using the

properties of logarithms. We have

ln

[ p

i 1

pi 2

]

= ln

[ p

i 1

pi 3

]

− ln

[ p

i 2

pi 2

]

= x′ i(β 1 − β 2 )

= x′ iβ 3

Using the logits defined above, we may derive the expression for πj (x) =

P (Y = j|x), j = 1, 2 , 3, the probability that the response takes the value j

given the covariate vector x. We have

π 1 (x) = e

x′^ β 1

1 + ex

+ ex

π 2 (x) =

ex

2

1 + ex

+ ex

π 3 (x) = 1

1 + ex

+ ex

The estimates of the parameters may be obtained using maximum likeli-

hood techniques.

The CATMOD Procedure

Data Summary

Response dur Response Levels 3 Weight Variable None Populations 91 Data Set PREGNANCY Total Frequency 102 Frequency Missing 0 Observations 102

The CATMOD Procedure

Population Profiles

Sample Sample nutri age1 age2 alc smoking Size

1 94 0 0 1 0 1 2 97 1 0 1 1 1 3 99 1 0 0 0 1 4 100 0 0 0 0 1 5 102 0 0 0 1 1 6 102 0 0 1 0 1 7 102 0 1 0 0 1 8 104 0 0 0 0 1 9 104 0 0 1 1 1 10 104 0 1 0 1 1 11 109 0 0 1 0 1 12 110 0 0 0 0 2 13 110 0 0 0 1 1 14 110 1 0 0 0 1 15 111 0 0 0 1 1 16 111 0 0 1 1 1 17 113 1 0 0 1 1

Response Profiles

Response dur

1 1 2 2 3 3

Maximum Likelihood Analysis

Maximum likelihood computations converged.

Maximum Likelihood Analysis of Variance

Source DF Chi-Square Pr > ChiSq

Intercept 2 6.59 0. nutri 2 14.93 0. age1 2 12.62 0. age2 2 6.43 0. alc 2 8.33 0. smoking 2 13.54 0.

Likelihood Ratio 170 154.81 0.

Analysis of Maximum Likelihood Estimates

Function Standard Chi- Parameter Number Estimate Error Square Pr > ChiSq

Intercept 1 5.4753 2.2716 5.81 0. 2 3.9582 1.9410 4.16 0. nutri 1 -0.0654 0.0182 12.87 0. 2 -0.0464 0.0149 9.74 0. age1 1 2.9570 0.9645 9.40 0. 2 2.9135 0.8575 11.54 0. age2 1 2.0597 0.8948 5.30 0. 2 1.8875 0.8088 5.45 0. alc 1 2.0429 0.7097 8.29 0. 2 1.0670 0.6495 2.70 0. smoking 1 2.4524 0.7315 11.24 0. 2 2.2305 0.6682 11.14 0.

The first part of the output is a grouping of the data into a contingency

table. In the second part of the output, we obtain global tests for the effect

of each covariate on the response controlling for the other covariates. Each

chi-square is a test of H 0 : the covariate has no effect on the response. The

degrees of freedom are 2 because each variable has two coefficients (for the 2

logits).

The likelihood ratio is the difference in the log-likelihoods for the fitted

model and the saturated model. A high p-value indicates a good fit.

that it allows us to have different sets of covariates in different equations.

Analysis for Ordered Categories

There are several situations when the scale of the response may be ordinal.

Common examples include severity of disease, job performance (inadequate,

satisfactory, outstanding), income (low, medium, high). When the categories

are ordered, we could ignore the ordering and use the multinomial model

described above. This however, does not take into account the ordinal nature

of the data and provides less powerful tests of hypotheses.

For the example in the previous section, the response categories have an

obvious ordering: 1 is the shortest duration, 3 is the longest duration. The

duration variable is clearly continuous, but has been discretized into 3 cate-

gories.

The most widely used model is the cumulative logit model, also known

as the ordered logit model or the proportional odds model.

Let the ordinal response variable Y take on K values coded 1, 2 ,... , K.

Let pk(x) represent the probability that the outcome is equal to k, conditional

on the values of the covariates.

We compute the cumulative probability P (Y ≤ k|x) = ∑ki=1 pi(x). We

compare the probability P (Y ≤ k) with the probability P (Y > k), i.e at each

stage we are creating a different dichotomization of the dependent variable.

The model is defined through the equations

ln

 P^ (Y^ ≤^ k|x)

P (Y > k|x)

 = αk + x′ β k = 1,... K − 1.

Here there is a single set of coefficients, but a different intercept for each

equation. The ratio of the odds of the event Y ≤ k is independent of the

category k, i.e the model implies proportional odds.

The LOGISTIC Procedure

Model Information

Data Set WORK.PREGNANCY Response Variable dur Number of Response Levels 3 Number of Observations 102 Model cumulative logit Optimization Technique Fisher’s scoring

Response Profile

Ordered Total Value dur Frequency

1 1 26 2 2 35 3 3 41

Probabilities modeled are cumulated over the lower Ordered Values.

Wald 32.3954 5 <.

Analysis of Maximum Likelihood Estimates

Standard Wald Parameter DF Estimate Error Chi-Square Pr > ChiSq

Intercept 1 1 2.9299 1.4650 3.9998 0. Intercept 2 1 5.0247 1.5213 10.9085 0. nutri 1 -0.0489 0.0117 17.4958 <. age1 1 1.9760 0.5875 11.3137 0. age2 1 1.3635 0.5547 6.0426 0. alc 1 1.6698 0.4727 12.4767 0. smoking 1 1.5916 0.4525 12.3683 0.

Odds Ratio Estimates

Point 95% Wald Effect Estimate Confidence Limits

nutri 0.952 0.931 0. age1 7.214 2.281 22. age2 3.910 1.318 11. alc 5.311 2.103 13. smoking 4.911 2.023 11.

The model predicts the probability of being in a lower category, i.e. short-

est duration. The odds ratio for smoking is 4.91: i.e. the odds of smokers

having shorter durations is nearly 5 times the odds for nonsmokers. The

odds ratio for nutrition is 0.952. We have 100(1 − 0 .952) = − 4 .8. This says

a one unit increase in nutrition levels decreases the odds of being in a lower

duration category by 4.8 %.

We can also test the proportional odds assumption. The test provides a

p-value of 0.1444 which says the assumption is valid.

If the proportionality assumption is violated, we can estimate separate

models for different dichotomizations of the response variable. This will give

us some sense of which covariates behave differently across these different

models.