Package com.stata.sfi

Class Missing


  • public class Missing
    extends Object
    This class provides tools for handling Stata missing values.
    • Constructor Detail

      • Missing

        public Missing()
    • Method Detail

      • 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.