This helper function checks whether a vector variable comprises only zeros and 1's.
checkIfValidDummyVariable(vector)
Arguments
vector: Vector variable
Returns
The logical value: TRUE - if a vector variable passed as the function's parameter represents a valid dummy variable, i.e., comprises only zeros and 1's. FALSE - if a vector variable passed as the function's parameter does not represent a valid dummy variable.