Stata 15 help for _massert

Title

[P] _massert -- Verify two matrices are equal

Syntax

_massert matrix1 matrix2 [, tol(real) nostop]

Description

_massert verifies that reldif(matrix1,matrix2) <= tol is true. If it is true, the command produces no output. If it is not true, _massert informs you of the "assertion failure", displays the relative difference, and issues a return code of 9; see [U] 8 Error messages and return codes.

Options

tol(real) sets the tolerance limit for the relative difference. The default is tol(1e-8).

nostop prevents termination with error code 9 but still displays the error message.


© Copyright 1996–2018 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index