Checking a data matrix of households for the possible/impossible status under a predefined set of structural zeros.
checkconstraints_HHhead_at_group_level(data, neededpossiblehh, hh_size, parallel)A household data matrix generated by calling samplinghouseholds.
The number of possible households needed before checking is stopped.
The household size for the households in data.
Logical indicator for running the function in parallel mode.
A list containing information on checking result.
An indicator vector for the possible/impossible household status under constraints.
A data matrix for impossible households.
A vector for the original indexes of households when possible households are found. Generally not to be used.
A data matrix for possible households.
The actual number of possible households returned.
Given an input household data matrix, these functions will check the possible/impossible status of each household and also output the desired number of possible and impossible households separately. checkconstraints_HHhead_at_group_level checks contraints when the household head is moved to the household level. For the list of structural zeros currently included, see the documentation for checkconstraints.