specifies selection criteria for sample selection model. The BAYES statement does not support the SELECT option. The select-option specifies the condition for the endogenous variable to be selected. It is written as a variable name, followed by an equality
operator (=) or an inequality operator (<, >, <=, >=), followed by a number:
The variable is the endogenous variable that the selection is based on. The operator can be =, <, >, <= , or >=. Multiple select-options can be combined with the logic operators: AND, OR. The following example illustrates the use of the SELECT option:
endogenous y1 ~ select(z=0);
endogenous y2 ~ select(z=1 or z=2);
The SELECT option can be used together with the DISCRETE, CENSORED, or TRUNCATED option. For example:
endogenous y1 ~ select(z=0) discrete;
endogenous y2 ~ select(z=1) censored (lb=0);
endogenous y3 ~ select(z=1 or z=2) truncated (ub=10);
For more information about selection models with censoring or truncation, see the section Selection Models.