CQLIM Procedure

Example 12.2 Bivariate Probit Analysis

This example shows how to estimate a bivariate probit model by using a large data table.

The following DATA step generates a data set that contains 1 million observations from a bivariate probit model:

data bivariate_probit;
   call streaminit(19283);
   keep y1 y2 x1 x2;
   do i = 1 to 1000000;
      x1 = rand('NORMAL', 0, 1);
      x2 = rand('NORMAL', 0, 1);
      u1 = rand('NORMAL', 0, 1);
      u2 = rand('NORMAL', 0, 1);
      y1l = 1 + 2 * x1 + 3 * x2 + u1;
      y2l = 3 + 4 * x1 - 2 * x2 + u1 * 0.2 + u2;
      if y1l > 0 then y1 = 1;
      else            y1 = 0;
      if y2l > 0 then y2 = 1;
      else            y2 = 0;
      output;
   end;
run;

You can load the data set bivariate_probit into a data table in your session that is associated with the mylib libref. The DATA step assumes that your libref is named mylib, but you can substitute any appropriately defined libref.

data mylib.bivariate_probit;
   set bivariate_probit;
run;

The following statements estimate a bivariate probit model. Note that the INIT statement in the SAS program sets the initial values for some parameters in the optimization. The METHOD=QN option specifies the quasi-Newton optimization algorithm.

proc cqlim data = mylib.bivariate_probit method = qn;
   init y1.x1 = 2.8, y1.x2 = 2.1, _rho = 0.1;
   model y1 = x1 x2 / discrete;
   model y2 = x1 x2 / discrete;
run;

Output 12.2.1 shows the estimation results for the bivariate probit model. The "Discrete Response Profile" tables show the response profile for the variables y 1 and y 2.

Output 12.2.1: Bivariate Probit Analysis Results

The CQLIM Procedure

Discrete Response Profile
of y1
IndexValueTotal Frequency
10394734
21605266

The CQLIM Procedure

Discrete Response Profile
of y2
IndexValueTotal Frequency
10256241
21743759

Model Fit Summary
Dependent Variabley1 y2
Number of Observations1000000
Data SetBIVARIATE_PROBIT
Log Likelihood-313821
Maximum Absolute Gradient0.058932
Number of Iterations17
Optimization MethodQuasi-Newton
AIC627656.7
SBC627739.4
Covariance EstimationHessian

Convergence criterion (FCONV=1E-11) satisfied.


Parameter Estimates
ParameterDFEstimateStandard
Error
t ValueApprox
Pr > |t|
y1.Intercept11.0032330.003077326.02<.0001
y1.x112.0044880.004805417.20<.0001
y1.x213.0018780.006719446.77<.0001
y2.Intercept12.9445500.007710381.92<.0001
y2.x113.9242420.010270382.09<.0001
y2.x21-1.9626260.005678-345.65<.0001
_Rho10.1944740.00627830.98<.0001


Last updated: July 09, 2026