MODEL Statement |
The MODEL statement specifies the dependent variable and independent regressor variables for the regression model. When the nested logit model is estimated, regressors in the UTILITY statement are used for estimation.
The following options can be used in the MODEL statement after a slash (/).
specifies the variables that contain possible choices for each individual. Choice variables must have integer values. Multiple choice variables are allowed only for nested logit models. If all possible alternatives are written with the variable name, the MDC procedure checks all values of the choice variable. The CHOICE=(X 1 2 3) specification implies that the value of X should be 1, 2, or 3. On the other hand, the CHOICE=(X) specification considers all distinctive nonmissing values of X as elements of the choice set.
specifies the convergence criterion. The CONVERGE= option is the same as the ABSGCONV= option in the NLOPTIONS statement. The ABSGCONV= option in the NLOPTIONS statement overrides the CONVERGE= option. The default value is 1E–5.
specifies the starting point of the Halton sequence. The specified number must be a positive integer. The default is HALTONSTART=11.
specifies options that are used to estimate the HEV model. The HEV model with a unit scale for the alternative 1 is estimated using the following SAS statement:
model y = x1 x2 x3 / hev=(unitscale=1);
The following options can be used in the HEV= option. These options are listed within parentheses and separated by commas.
specifies the number of summation terms for Gaussian quadrature integration. The default is INTORDER=40. The maximum order is limited to 45. This option applies only to the INTEGRATION=LAGUERRE method.
specifies restrictions on scale parameters of stochastic utility components.
specifies the integration method. The INTEGRATE=HARDY option specifies an adaptive integration method, while the INTEGRATE=LAGUERRE option specifies the Gauss-Laguerre approximation method. The default is INTEGRATE=LAGUERRE.
specifies options that are used for mixed logit estimation. The mixed logit model with normally distributed random parameters is specified as follows:
model y = x1 x2 x3 / mixed=(normalparm=x1);
The following options can be used in the MIXED= option. The options are listed within parentheses and separated by commas.
specifies the variables whose random coefficients are lognormally distributed. LOGNORMALPARM= variables must be included on the right-hand side of the MODEL statement.
specifies the error component variables whose coefficients have a normal distribution .
specifies the variables whose random coefficients are normally distributed. NORMALPARM= variables must be included on the right-hand side of the MODEL statement.
specifies the error component variables whose coefficients have a uniform distribution .
specifies the variables whose random coefficients are uniformly distributed. UNIFORMPARM= variables must be included on the right-hand side of the MODEL statement.
specifies the number of choices for multinomial choice models when all individuals have the same choice set. When individuals have different number of choices, the NCHOICE= option is not allowed, and the CHOICE= option should be used. The NCHOICE= and CHOICE= options must not be used simultaneously, and the NCHOICE= option cannot be used for nested logit models.
specifies the number of simulations when the mixed logit or multinomial probit model is estimated. The default is NSIMUL=100. In general, you need a smaller number of simulations with RANDNUM=HALTON than with RANDNUM=PSEUDO.
specifies the type of the random number generator used for simulation. RANDNUM=HALTON is the default. The following option values are allowed:
specifies pseudo-random number generation.
specifies Halton sequence generation.
specifies that initial parameter values be perturbed by uniform pseudo-random numbers for numerical optimization of the objective function. The default is . When the RANDINIT= option is specified, pseudo-random numbers are generated. The value should be positive. With a RANDINIT or RANDINIT= option, there are pure random searches for a given number of trials (1,000 for conditional or nested logit, and 500 for other models) to get a maximum (or minimum) value of the objective function. For example, when there is a parameter estimate with an initial value of 1, the RANDINIT option adds a generated random number to the initial value and computes an objective function value by using . This option is helpful in finding the initial value automatically if there is no guidance in setting the initial estimate.
specifies that the dependent variable contain ranks. The numbers must be positive integers starting from 1. When the dependent variable has value 1, the corresponding alternative is chosen. This option is provided only as a convenience to the user; the extra information contained in the ranks is not currently used for estimation purposes.
specifies options that are used for reiteration of the optimization problem. When the ADDRANDOM option is specified, the initial value of reiteration is computed using random grid searches around the initial solution, as follows:
model y = x1 x2 / type=clogit restart=(addvalue=(.01 .01));
The preceding SAS statement reestimates a conditional logit model by adding ADDVALUE= values. If the ADDVALUE= option contains missing values, the RESTART= option uses the corresponding estimate from the initial stage. If no ADDVALUE= value is specified for an estimate, a default value equal to (|estimate| * 1e-3) is added to the corresponding estimate from the initial stage. If both the ADDVALUE= and ADDRANDOM(=) options are specified, ADDVALUE= is ignored.
The following options can be used in the RESTART= option. The options are listed within parentheses.
specifies the maximum number of iterations for the second stage of the estimation. The default is ADDMAXIT=100.
specifies random added values to the estimates from the initial stage. With the ADDRANDOM option, random numbers are created and added to the estimates obtained in the initial stage. When the ADDRANDOM= option is specified, random numbers are generated. The restart initial value is determined based on the given number of random searches (1,000 for conditional or nested logit, and 500 for other models).
specifies values added to the estimates from the initial stage. A missing value in the list is considered as a zero value for the corresponding estimate. When the ADDVALUE= option is not specified, default values equal to (|estimate| * 1e-3) are added.
specifies that the parameters of the inclusive values be the same within a group at each level when the nested logit is estimated.
specifies an initial seed for pseudo-random number generation. The SEED= value must be less than . If the SEED= value is negative or zero, the time of day from the computer’s clock is used to obtain the initial seed. The default is SEED=0.
specifies that the parameters of the inclusive values be the same for any choice with only one nested choice within a group, for each level in a nested logit model. This option is useful in analyzing stated preference data.
specifies the type of model to be analyzed. The following model types are supported:
specifies a conditional logit model.
specifies a heteroscedastic extreme-value model.
specifies a mixed logit model.
specifies a multinomial probit model.
specifies a nested logit model.
specifies normalization restrictions on error variances of multinomial probit for the choices whose numbers are given in the list. If the UNITVARIANCE= option is specified, it must include at least two choices. Also, for identification, additional zero restrictions are placed on the correlation coefficients for the last choice in the list.
specifies the type of covariance matrix. The following types are supported:
specifies the covariance from the outer product matrix.
specifies the covariance from the Hessian matrix.
specifies the covariance from the outer product and Hessian matrices.
When COVEST=OP is specified, the outer product matrix is used to compute the covariance matrix of the parameter estimates. The COVEST=HESSIAN option produces the covariance matrix by using the inverse Hessian matrix. The quasi-maximum likelihood estimates are computed with COVEST=QML. The default is COVEST=HESSIAN when the Newton-Raphson method is used. COVEST=OP is the default when the OPTMETHOD=QN option is specified.
displays the estimated covariances of the parameter estimates.
displays the estimated correlation matrix of the parameter estimates.
displays the initial parameter estimates, convergence criteria, and constraints of the optimization. At each iteration, the objective function value, the maximum absolute gradient element, the step size, and the slope of search direction are printed. The objective function is the full negative log-likelihood function for the maximum likelihood method. When the ITPRINT option is specified and the NLOPTIONS statement is specified, all printing options in the NLOPTIONS statement are ignored.
You can also specify detailed optimization options in the NLOPTIONS statement. The OPTMETHOD= option overrides the TECHNIQUE= option in the NLOPTIONS statement. The NLOPTIONS statement is ignored if the OPTMETHOD= option is specified.
specifies initial values for some or all of the parameter estimates. The values specified are assigned to model parameters in the same order in which the parameter estimates are displayed in the MDC procedure output.
When you use the INITIAL= option, the initial values in the INITIAL= option must satisfy the restrictions specified for the parameter estimates. If they do not, the initial values you specify are adjusted to satisfy the restrictions.
sets the maximum number of iterations allowed. The MAXITER= option overrides the MAXITER= option in the NLOPTIONS statement. The default is MAXITER=100.
specifies the optimization technique when the estimation method uses nonlinear optimization. The following techniques are supported:
specifies the quasi-Newton method.
specifies the Newton-Raphson method.
specifies the trust region method.
The OPTMETHOD=NR option is the same as the TECHNIQUE=NEWRAP option in the NLOPTIONS statement. For the conditional and nested logit models, the default is OPTMETHOD=NR. For other models, the default is OPTMETHOD=QN.