Compute the indexes of the values of the common regressors Xc used in the various shape constraints
compute_constraints(
constraint,
values,
values_sel,
indexes_k = NULL,
nbV,
grouped0,
ind = NULL,
c_sign = NULL
)
a vector containing:
- the matrix R where each line is a constraint
- the matrices pp0 and pp1, which contains the indexes of the values of Xc in values_sel which enters the various constraints.
the current shape constraint
the different unique points of support of the common regressor Xc.
the selected values of Xc for the conditioning. Default is NULL.
indexes of the constraints
indexes of the constraints
boolean indexing if the values of Xc have been changed
index
sign restrictions on the commonly observed regressors: -1 for a minus sign, 1 for a plus sign, 0 otherwise. Default is NULL, i.e. no constraints.