Hi Statalist,
Random question: why isn't there an if and only if operator in STATA? I very often want: "assert A iff B". I end up writing: "assert (A & B) | (!A & !B)"
This gets cumbersome when A and B are large. Since other people need to read/understand my do files, it would be nice for the intelligibility of my asserts if I could just write iff as well.
Is there a reason this operator cannot be included as part of the standard set?
Thanks,
Julian
Related Posts with If and only if operator
Fixed effects stability test or Joint F test for fixed effectsHello every one, I have the wage gap between immigrants and natives Born by census metropolitan are…
Excel's XIRR function in StataHi Forum I am attempting to perform financial investment performance analysis. For small test samp…
How to Aggregate Repeating Dates into new tableI can't remember how to effectively reshape repeating dates in a time series into a new table. Belo…
Line disappearsDear all, I'm doing a scatter plot (potassium levels in 2 distinct moments) with this code (which w…
Generate dates that correspond to the 1st Tuesday of each monthHi, The Australian RBA meets the first Tuesday of each month 11 times a year (every months but Janu…
Subscribe to:
Post Comments (Atom)
0 Response to If and only if operator
Post a Comment