NM-method
The NM-method or Naszodi–Mendonca method is the operation that can be applied in statistics, econometrics, economics, sociology, and demography to construct counterfactual contingency tables. The method finds the matrix X {\displaystyle X} ( X ∈ R n × m {\displaystyle X\in \mathbb {R} ^{n\times m}} ) which is "closest" to matrix Z {\displaystyle Z} ( Z ∈ N n × m {\displaystyle Z\in \mathbb {N} ^{n\times m}} called the seed table) in the sense of being ranked the same but with the row and column totals of a target matrix Y {\displaystyle Y} ( Y ∈ N n × m ) {\displaystyle (Y\in \mathbb {N} ^{n\times m})} .