Package com.stata.sfi

Class Missing

java.lang.Object
com.stata.sfi.Missing

public class Missing extends Object
This class provides tools for handling Stata missing values.
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Class
    Description
    static enum 
    Mappings that correspond to missing values in Stata.
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    getMissing(double value)
    Get the Missing.Extended associated with a value or null if the value is not missing.
    static double
    Get the numeric value that represents the system missing value in Stata.
    static double
    getValue(Missing.Extended extendedMissing)
    Get the numeric value that represents an extended missing value in Stata.
    static boolean
    isMissing(double value)
    Test if a value is a Stata missing.
    static boolean
    Test if a string is a Stata missing.

    Methods inherited from class java.lang.Object

    equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • Missing

      public Missing()
  • Method Details

    • getMissing

      @ThreadSafe public static Missing.Extended getMissing(double value)
      Get the Missing.Extended associated with a value or null if the value is not missing.
      Parameters:
      value - The value to test.
      Returns:
      The Missing.Extended associated with a value or null if the value is not missing.
    • getValue

      @ThreadSafe public static double getValue()
      Get the numeric value that represents the system missing value in Stata.
      Returns:
      The numeric value of a missing value in Stata.
    • getValue

      @ThreadSafe public static double getValue(Missing.Extended extendedMissing)
      Get the numeric value that represents an extended missing value in Stata.
      Parameters:
      extendedMissing - The extended missing value to get.
      Returns:
      The numeric value of an extended missing value in Stata
    • isMissing

      @ThreadSafe public static boolean isMissing(double value)
      Test if a value is a Stata missing.
      Parameters:
      value - The value to test.
      Returns:
      True if the value matches a Stata system missing value or an extended missing value.
    • parseIsMissing

      @ThreadSafe public static boolean parseIsMissing(String s)
      Test if a string is a Stata missing.
      Parameters:
      s - The value to test.
      Returns:
      True if the string matches a Stata system missing value or an extended missing value.