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
Panel ARDL Huasman test>>>"invalid new variable name"Dear Stata Team, I am running a Panel ARDL model but want to choose between "mg" or "pmg" using the …
calculate percentageHello, everyone, in my panel data I would like to calculate the percentage of restatements during th…
regress by both industry and areaDear Statalist, I understand how to divide firms into industries and regress firms by industry, and…
Computing predicted probabilities of uptake in a discrete choice experimentDear Statalist, I conduct a discrete choice experiment. I have seven attributes with 6, 4, 3, 3, 3,…
Help in reshapingHi I have a dataset of industrial clusters which are segmented into districts, states and products (…
Subscribe to:
Post Comments (Atom)
0 Response to If and only if operator
Post a Comment