Package com.stata.sfi
Class Missing
java.lang.Object
com.stata.sfi.Missing
This class provides tools for handling Stata missing values.
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic enum
Mappings that correspond to missing values in Stata. -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic Missing.Extended
getMissing
(double value) Get theMissing.Extended
associated with a value or null if the value is not missing.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
Test if a string is a Stata missing.
-
Constructor Details
-
Missing
public Missing()
-
-
Method Details
-
getMissing
Get theMissing.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
Get the numeric value that represents the system missing value in Stata.- Returns:
- The numeric value of a missing value in Stata.
-
getValue
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
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
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.
-