The QLIM Procedure

Introductory Example: Binary Probit and Logit Models

(View the complete code for this example.)

The following example illustrates the use of PROC QLIM. The data were originally published by Mroz (1987) and downloaded from Wooldridge (2002). This data set is based on a sample of 753 married white women. The dependent variable is a discrete variable of labor force participation (inlf ). Explanatory variables are the number of children ages 5 or younger (kidslt6 ), the number of children ages 6 to 18 (kidsge6 ), the woman’s age (age ), the woman’s years of schooling (educ ), wife’s labor experience (exper ), square of experience (expersq ), and the family income excluding the wife’s wage (nwifeinc ). The program (with data values omitted) is as follows:

/*-- Binary Probit --*/
proc qlim data=mroz plots=predicted;
   model inlf = nwifeinc educ exper expersq
                age kidslt6 kidsge6  / discrete;
run;

Results of this analysis are shown in the following four figures. In the first table, shown in Figure 1, PROC QLIM provides frequency information about each choice. In this example, 428 women participate in the labor force (inlf = 1).

Figure 1: Choice Frequency Summary

Estimating a Binary Response Model

The QLIM Procedure

Discrete Response Profile of inlf
IndexValueTotal Frequency
10325
21428


The second table is the estimation summary table shown in Figure 2. Included are the number of dependent variables, names of dependent variables, the number of observations, the log-likelihood function value, the maximum absolute gradient, the number of iterations, the optimization method, AIC, and Schwarz criterion.

Figure 2: Fit Summary Table of Binary Probit

Model Fit Summary
Number of Endogenous Variables1
Endogenous Variableinlf
Number of Observations753
Log Likelihood-401.30219
Maximum Absolute Gradient0.0000133
Number of Iterations15
Optimization MethodQuasi-Newton
AIC818.60439
Schwarz Criterion855.59691


Goodness-of-fit measures are displayed in Figure 3. All measures except McKelvey-Zavoina’s definition are based on the log-likelihood function value. The likelihood ratio test statistic has chi-square distribution conditional on the null hypothesis that all slope coefficients are zero. In this example, the likelihood ratio statistic is used to test the hypothesis that kidslt6 = kidge6 = age = educ = exper = expersq equals nwifeinc = 0.

Figure 3: Goodness of Fit

Goodness-of-Fit Measures
MeasureValueFormula
Likelihood Ratio (R)227.142 * (LogL - LogL0)
Upper Bound of R (U)1029.7- 2 * LogL0
Aldrich-Nelson0.2317R / (R+N)
Cragg-Uhler 10.26041 - exp(-R/N)
Cragg-Uhler 20.3494(1-exp(-R/N)) / (1-exp(-U/N))
Estrella0.28881 - (1-R/U)^(U/N)
Adjusted Estrella0.26931 - ((LogL-K)/LogL0)^(-2/N*LogL0)
McFadden's LRI0.2206R / U
Veall-Zimmermann0.4012(R * (U+N)) / (U * (R+N))
McKelvey-Zavoina0.4025 
N = # of observations, K = # of regressors


The parameter estimates and standard errors are shown in Figure 4.

Figure 4: Parameter Estimates of Binary Probit

Parameter Estimates
ParameterDFEstimateStandard
Error
t ValueApprox
Pr > |t|
Intercept10.2700770.5085900.530.5954
nwifeinc1-0.0120240.004840-2.480.0130
educ10.1309050.0252555.18<.0001
exper10.1233480.0187206.59<.0001
expersq1-0.0018870.000600-3.140.0017
age1-0.0528530.008477-6.24<.0001
kidslt61-0.8683290.118519-7.33<.0001
kidsge610.0360050.0434770.830.4076


Finally, the QLIM procedure profiles the predicted outcome with respect to the regressors. For example, Figure 5 shows the predicted values profiled with respect to nwifeinc, educ, exper, expersq, age, and kidslt6.

Figure 5: Predictions by Regressors: nwifeinc, educ, exper, expersq, age, and kidslt6

Predictions by Regressors: , , , , , and


When the error term has a logistic distribution, the binary logit model is estimated. To specify a logistic distribution, add the D=LOGIT option as follows:

/*-- Binary Logit --*/
proc qlim data=mroz;
   model inlf = nwifeinc educ exper expersq
                age kidslt6 kidsge6  / discrete(d=logit);
run;

The estimated parameters are shown in Figure 6.

Figure 6: Parameter Estimates of Binary Logit

Estimating a Binary Response Model

The QLIM Procedure

Parameter Estimates
ParameterDFEstimateStandard
Error
t ValueApprox
Pr > |t|
Intercept10.4254520.8603650.490.6210
nwifeinc1-0.0213450.008421-2.530.0113
educ10.2211700.0434415.09<.0001
exper10.2058700.0320706.42<.0001
expersq1-0.0031540.001017-3.100.0019
age1-0.0880240.014572-6.04<.0001
kidslt61-1.4433540.203575-7.09<.0001
kidsge610.0601120.0747910.800.4215


The heteroscedastic logit model can be estimated using the HETERO statement. If the variance of the logit model is a function of the family income level excluding wife’s income (nwifeinc), the variance can be specified as

Var left-parenthesis epsilon Subscript i Baseline right-parenthesis equals sigma squared exp left-parenthesis gamma asterisk nwifeinc Subscript i Baseline right-parenthesis

where sigma squared is normalized to 1 because the dependent variable is discrete. The following SAS statements estimate the heteroscedastic logit model:

/*-- Binary Logit with Heteroscedasticity --*/
proc qlim data=mroz;
  model inlf = nwifeinc educ exper expersq
               age kidslt6 kidsge6 / discrete(d=logit);
  hetero inlf ~ nwifeinc / noconst;
run;

The parameter estimate, gamma, of the heteroscedasticity variable is listed as _H.nwifeinc; see Figure 7.

Figure 7: Parameter Estimates of Binary Logit with Heteroscedasticity

Estimating a Binary Response Model

The QLIM Procedure

Parameter Estimates
ParameterDFEstimateStandard
Error
t ValueApprox
Pr > |t|
Intercept10.5104450.9835380.520.6038
nwifeinc1-0.0267780.012108-2.210.0270
educ10.2555470.0617284.14<.0001
exper10.2341050.0466395.02<.0001
expersq1-0.0036130.001236-2.920.0035
age1-0.1008780.021491-4.69<.0001
kidslt61-1.6452060.311296-5.29<.0001
kidsge610.0669410.0856330.780.4344
_H.nwifeinc10.0132800.0136060.980.3291


Last updated: December 20, 2021