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
Evaluating whether a vector of strings is in a dfIf I want to see whether a string is in a column at the most simplest, I can do something like: Exa…
itsa outputGood evening, I am running a time series analysis with multiple groups using ITSA. The initial data…
HAZ scoreHi, I don't understand why there are still HAZ missing value on my data, even all my height, age, an…
eivreg (with perfect reliability) is different than regressHi All, It seems to me that using eivreg with all reliabilities=1.0 should produce identical estimat…
Individual unit effect in xtregarHello Statalist, I am running a panel data fixed effect regression. The N=620, t=10. Given the autoc…
Subscribe to:
Post Comments (Atom)
0 Response to If and only if operator
Post a Comment