Code for (mis)specification matrix