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 class
Missing.Extended
Mappings that correspond to missing values in Stata.
-
Constructor Summary
Constructors Constructor Description Missing()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static double
getValue()
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
parseIsMissing(String s)
Test if a string is a Stata 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.
-
-