add take_nonmissing and missingness_patterns