handle (skip) missing data in matrix methods