English, Article, Journal or magazine article edition: Three-Valued Logic Operations in Stata David Kantor

User activity

Share to:
 
Bookmark: http://trove.nla.gov.au/version/101719
Physical Description
  • preprint
Language
  • English

Edition details

Title
  • Three-Valued Logic Operations in Stata
Author
  • David Kantor
Physical Description
  • preprint
Notes
  • Stata uses numeric quantities as logical values, and provides logical operators (&​, |, ~) to build expressions from basic entities. These operators can be regarded as faulty when missing values are present in the operands. In this context, missing is equivalent to true, which is often not the desired result. Instead, one may want to obtain the maximal set of nonmissing results for all combinations of operand values, while preserving the behavior of the operators on two-valued operands -- in other words, one should adopt three-valued logic. I have developed a set of egen functions that provide this capability. As such, they can only do one type of operation at a time, so that complex expressions would need to be built in stages. But they can be a great help when you wish to generate indicator variables and want the maximal set of nonmissing results.
  • RePEc:boc:asug01:5.2
Language
  • English
Contributed by
OAIster

Get this edition

Other links

  • Set up My libraries

    How do I set up "My libraries"?

    In order to set up a list of libraries that you have access to, you must first login or sign up. Then set up a personal list of libraries from your profile page by clicking on your user name at the top right of any screen.

  • All (1)
  • Unknown (1)
None of your libraries hold this item.
None of your libraries hold this item.
None of your libraries hold this item.
None of your libraries hold this item.
None of your libraries hold this item.
None of your libraries hold this item.
None of your libraries hold this item.
None of your libraries hold this item.

User activity


e.g. test cricket, Perth (WA), "Parkes, Henry"

Separate different tags with a comma. To include a comma in your tag, surround the tag with double quotes.

Be the first to add a tag for this edition

Be the first to add this to a list

Comments and reviews

What are comments? Add a comment

No user comments or reviews for this version

Add a comment