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
Variable Name Error (r198) in asregHi, I am trying to estimate the impact of directors' remuneration on firm performance. My unbalance…
Advanced Stata programming question: Dialog box for user-defined powerHi everyone, I am looking to create a dialog box (or add to the power dialog box?) for a user-defin…
Logistic Regression IssuesI am trying to perform a logistic regression but I am running into issues with the var. I keep getti…
Problem with reshapeI have a dataset (attached) that I am trying to reshape to long from wide. The data consist of aggre…
Test differences in average marginal effects within subgroups based on logistic regression modelI'm analyzing a randomized controlled trial with four treatment groups. I want to test whether there…
Subscribe to:
Post Comments (Atom)
0 Response to If and only if operator
Post a Comment