Functions for validating sampling frames and checking design compatibility.