I'm trying to build a confusion matrix in Latex following the approach in:
How to construct a confusion matrix in LaTeX?
Instead of the text inside the boxes, I would like to have numbers (at the center of the each box). If I substitute the text with a number (e.g. \Mybox{x}), I get the following error: "Mysplaced alignment character tab &".
Could you help me with this?
Also I would not need the small p's and n's, but only the row/column sums.
Thank you for your help
\MyBoxin the code that you reference takes two arguments and{x}is just one.It is nothing to do with being numbers or letters – David Carlisle Aug 13 '19 at 19:21