Docsity

Complex Sampling for Multinomial Logistic Regression: Estimation of Population Parameters, Study notes of Mathematical Statistics

Toggle sidebar
bg1
1
CSLOGISTIC
Logistic regression is a commonly used analytical tool for categorical responses. SPSS has
procedures LOGISTIC REGRESSION (for binary response) and NOMREG (for multi-
category response) under the standard sampling setting. This document considers
multinomial logistic regression model under the complex sampling setting extending the
model in NOMREG to complex sampling.
There are different approaches for analytic inference in complex sampling (Chambers and
Skinner 2003). We will take the two-phase sampling and pseudo-likelihood estimation
approaches.
Notation
i
y Categorical dependent/response variable for case i. Its category values are denoted as
1, 2, etc.
K The total number of categories for dependent variable.
)(kyi Indicator variable for category k, i.e.
=
=otherwise0
if1
)( ky
ky i
i.
X
Design matrix
()
′
=n
xxX ,,
1, where
()
′
=ipii xx ,,
1x is for case i.
Note 1
1=
i
x if model is with intercept.
i
π
Inclusion probability for case i.
i
w Sampling weight for case i, ii
w
π
/1=.
()
kpx The probability for response category k at
x
:
()
)|Pr( x
xkykp == , and denote
() ()
kpkp i
ix
= for case i.
N The number of cases in the whole population.
N The number of cases in the sample.
B
The parameter of interest, the population or census parameter.
Input
• The sampling plan.
This plan provides information about the sampling method, sampling weight, strata and
cluster information.
• Observed sample data
{}
n
i
iii wy 1
,, =
x.
Predictors can be either categorical or continuous. The intercept, main effect, interaction
effects and nested effects can be in the model.
pf3
pf4
pf5
pf8
pf9
pfa

Partial preview of the text

Download Complex Sampling for Multinomial Logistic Regression: Estimation of Population Parameters and more Study notes Mathematical Statistics in PDF only on Docsity!

CSLOGISTIC

Logistic regression is a commonly used analytical tool for categorical responses. SPSS has

procedures LOGISTIC REGRESSION (for binary response) and NOMREG (for multi-

category response) under the standard sampling setting. This document considers

multinomial logistic regression model under the complex sampling setting extending the

model in NOMREG to complex sampling.

There are different approaches for analytic inference in complex sampling (Chambers and

Skinner 2003). We will take the two-phase sampling and pseudo-likelihood estimation

approaches.

Notation

i

y

Categorical dependent/response variable for case i. Its category values are denoted as

1, 2, etc.

K The total number of categories for dependent variable.

y ( k ) i

Indicator variable for category k , i.e.

0 otherwise

1 if

y k

y k

i

i

.

X

Design matrix ( )

n

X x , , x 1

" , where (^ )

i i ip

x , , x 1

x " is for case i.

Note 1 1

i

x if model is with intercept.

i

Inclusion probability for case i.

i

w Sampling weight for case i , i i

w = 1 / π.

p ( ) k

x

The probability for response category k at x : ( ) Pr( | x )

x

p k = y = k , and denote

p ( ) k p ( ) k

i x i

= for case i.

N (^) The number of cases in the whole population.

N The number of cases in the sample.

B

The parameter of interest, the population or census parameter.

Input

  • The sampling plan.

This plan provides information about the sampling method, sampling weight, strata and

cluster information.

• Observed sample data {^ }

n

i i i i

y w 1

=

x.

Predictors can be either categorical or continuous. The intercept, main effect, interaction

effects and nested effects can be in the model.

Superpopulation model

Two phases of sampling are assumed. The first phase generates a finite population by a

model or super population. The second phase selects a sample according to a sampling plan

from the finite population generated in the first phase.

Model generating the population

Assume that response variable y at a given x follows a multinomial distribution with

probability p ( ) k x

for y = k. Without loss of generality, let the last category K be the

reference category. Then for k = 1 , …, K- 1,

( )

( )

k

p K

p k

x

x

x log = ′.

Or

( )

∑

∑

−

=

−

=

k K

k K

p k

K

k

k

K

k

k

k

1

1

1

1

1 exp( )

1 exp( )

exp( )

x

x

x

x

,

where ( )

k k kp

1

" is the regression parameter vector for response category k.

There are p ( K -1) regression parameters in total ( )

1 − 1

K

. This model is described

in many books, for example Agresti (2002).

The parameter of interest

Let B denote the MLE of the model parameter based on the whole population. This B is

also called the census parameter. The parameter of interest is the census parameter B , rather

than the model parameter. The exact definition and formulation of B is described below in

the estimating equation.

Estimating parameters from a complex sample

For a sample { }

n

i i i

S y 1

=

= x drawn from the finite population according to a sample plan,

we take the pseudo-likelihood approach. In this approach, the pseudo-likelihood is a sample

estimate of the population log-likelihood, and parameter estimates are derived by

maximizing the pseudo-likelihood.

From the sample, an unbiased estimate of population log-likelihood U

l is

( )

−

J is a generalized inverse of J ( ). The stepping scalar ξ > 0 is used to make

( 1 ) ( v )

S

v

S

l B ≥ l B

. Use step-halving method if ( ) ( )

( 1 ) ( v )

S

v

S

l B < l B

. Let t be the

maximum number of steps in step-halving; the set of values of ξ is {1/

r : r = 0, …, t -1}.

Starting with initial values

( 0 )

B , iteratively update

( v + 1 )

B until one of the stopping criteria

is satisfied. The final estimate is denoted as B

.

Note :

  • Sometimes, infinite parameters may be present in the model because of complete or

quasi-complete separation of the data (Albert and Anderson, 1984) (Santner and Duffy,

1986). In CSLOGISTIC, a check for separation of the data can be performed. If either

complete or quasi-complete separation is suggested by the test, a warning is issued and

results based on the last iteration are given.

Initial values

( 0 )

B

For all non-intercept regression parameters, set their initial values to be zero. For intercepts,

if there are any, set for k= 1 , …, K- 1,

K

k

k

N

N

B

log

( 0 )

1

.

Where ∑

∈

iS

k i i

N wy ( k )

is the estimated population number of responses in category k.

Stopping criteria

Given two convergence criteria l

ε > 0 and p

ε > 0, the iteration is considered to be converged

if one of the following criteria is satisfied:

1.

−

( ) ( ) ifabsolute change

ifrelativechange

( 1 ) ()

() 6

( 1 ) ()

l

v

S

v

S

l v

S

v

S

v

S

l l

l

l l

ε

ε

B B

B

B B

.,

2.

( )

−

max ifabsolute change

ifrelativechange

max

( 1 ) ()

,

() 6

( 1 ) ()

,

p

v

kj

v

kj kj

v p

kj

v

kj

v

kj

kj

B B

B

B B

ε

ε

.

  1. The maximum number of iterations is reached.

Properties of the estimates

Variance matrix

The design-based variance of B

(Binder 1983) has estimate

B B B B

− −

V ≈ J I J ,

where ( )

I is the estimate of design based variance of ( ) S

S. Let ( ) i i i i

d = y − p ⊗ x

,

then ( ) ∑ ∑

∈ ∈

iS

i i

iS

S i i i i

S w y p x w d

( ) is an estimate for population total of i

d

vectors. How to calculate designed based variance matrix for total is given in “Complex

Samples: Covariance Matrix of Total” (cs_covariance.pdf).

Confidence intervals

The confidence interval for a single regression parameter kj

B is approximately

− −

2

, 1

2

, 1

kj df

kj kj df

kj

B t seB B t seB α α

.

Where )

kj kj

se B = V B is the estimated standard error of kj

B

, and

2

, 1

α df −

t is the

100 ( 1 − α 2 ) percentile of t distribution with df degrees of freedom. The degrees of

freedom df can be user specified, and default as the difference between the number of

primary sampling units and the number of strata in the first stage of sampling.

Design effect

For each parameter kj

B , its design effect is the ratio of its variance under the design to its

variance under the SRS design,

V (B )

V(B )

Deff B

srs kj

kj

kj

ˆ ˆ

For SRS design, the variance matrix is

( B B B B

− −

V ≈ J I J SRS SRS

,

where

McFadden’s R Square

( 0 )

2

M

B

B

S

S

l

l

R = −

Hypothesis Testing

Contrasts defined as linear combination of regression parameters can be tested. Given matrix

L with r rows and p ( K − 1 )columns, and vector K with r elements, CSLogistic tests

the linear hypothesis : LB = K 0

H. See “Complex Samples: Model Testing”

(cs_modeltesting.pdf) for details.

Custom tests

For a user specified L and K , : LB = K 0

H is tested only when it is testable, i.e. when

LB is estimable. Let ( , , ) 1 − 1

K

L L " L , where each k

L is a r by p matrix. The LB is

estimable if for every k = 1 , ", K − 1 ,

L L H

k k

where H = ( X ′ X ) X ′ X

−

is a p × p matrix.

Note: In NOMREG, only block diagonal matrices such as ( , , )

L = diag L " L are

considered, where

L is a q × p matrix. Also in NOMREG, testability is not checked.

Default tests of Model effects

For each effect specified in the model, matrix ( , , )

L = diag L " L is constructed and

: LB = 0

0

H is tested. The matrix

L is chosen to be the type III test matrix constructed

based on matrix H = ( X ′ X ) X ′ X

−

. This construction procedure makes sure that LB is

estimable. It involves parameters only for the given effect and the effects containing the

given effect. It does not depend on the order of effects specified in the model. If such a

matrix cannot be constructed, the effect is not testable.

Predicted values

For a predictor pattern x , the predicted probability of each response category is

( )

∑

∑

−

=

−

=

k K

k K

p k

K

k

k

K

k

k

k

1

1

1

1

1 exp(

1 exp(

exp(

x B

xB

xB

x

.

The predicted category c ( x )is the one with the highest predicted probability, i.e.

c ( ) argmaxˆ p ( k )

k

x

x =.

Equivalently,

( ) k k

c x xB

( )=argmax ′

where 0

K

B is set for the last (reference) response category. This latter formula is less

likely to have numerical problems and should be used.

Classification table

A two-way table with ( i , j )-th element being the counts or the sum of weights for the

observations whose actual response category is i (as row) and predicted response category is

j (as column) respectively.

Odds ratio

The ratio of odds at 1

x to odds at 2

x for response category 1

k versus 2

k is

( ) ( )

( ) ( )

( , ; , ) exp(( )( ))

1 2

2 2

1 1

1 2

1 2

1 2

1 2 1 2 k k

p k p k

p k p k

or x x k k x x B B

x x

x x

= = − ′ −

For k = k 1

and k = K 2

(the reference response category), odds ratio is simplified as

( ) k

or ( x , x ; k , K ) exp( x x ) B 1 2 1 2

Equation for ( , ; , ) 1 2

or x x k K will be the one we use to calculate odds ratios. The estimate

and confidence interval for ( , ; , ) 1 2

or x x k K are respectively

( ) k

x x B

exp ( ) 1 2

Missing values

Missing values are handled using list-wise deletion; that is, any case without valid data on

any design, dependent, or independent variable is excluded from the analysis.

References

Agresti, A. (2002), Categorical Data Analysis, second edition. Wiley

Albert, A. and Anderson, J.A. (1984), "On the Existence of Maximum Likelihood Estimates

in Logistic Regression Models," Biometrika , 71, 1 -10.

Binder, D. A. (1983), “On the variances of asymptotically normal estimators from complex

surveys”, International Statistical Review , 51, 279-292.

Chambers R. L. and Skinner, C. J. (eds.) (2003), Analysis of Survey Data. Chichester:Wiley.

Santner, T.J. and Duffy, E.D. (1986), "A Note on A. Albert and J.A. Anderson's Conditions

for the Existence of Maximum Likelihood Estimates in Logistic Regression Models,"

Biometrika , 73, 755 -