Stata Assert
The assert command raises an error if a condition is not true.
Contents
Usage
assert foo==1 assert foo==1 if bar==1
The assert command can also be used with macros, scalars, and stored results.
count if foo==1 assert r(N)==0
The assert command raises an error if a condition is not true.
Contents
assert foo==1 assert foo==1 if bar==1
The assert command can also be used with macros, scalars, and stored results.
count if foo==1 assert r(N)==0