Checks if all numeric elements of a vector occur also in another vector. It is internally used by msas to check if some adjustment set is contained in another one.
Usage
viv(v1, v2)
Arguments
v1
The vector whose occurrence in v2 is to be checked.
v2
The vector in which v1 might occur.
Value
TRUE if v1 occurs in v2, FALSE otherwise.
Details
If a value occurs more than once in v1, it is counted as contained in v2 if it appears there once.
An empty v1 (consisting only of NA) is considered to be contained in any v2.