added function to distinguish missingness patterns in datasets