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
Nested ClassesModifier and TypeClassDescriptionstatic enumMappings that correspond to missing values in Stata. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic Missing.ExtendedgetMissing(double value) Get theMissing.Extendedassociated with a value or null if the value is not missing.static doublegetValue()Get the numeric value that represents the system missing value in Stata.static doublegetValue(Missing.Extended extendedMissing) Get the numeric value that represents an extended missing value in Stata.static booleanisMissing(double value) Test if a value is a Stata missing.static booleanTest if a string is a Stata missing.
-
Constructor Details
-
Missing
public Missing()
-
-
Method Details
-
getMissing
Get theMissing.Extendedassociated with a value or null if the value is not missing.- Parameters:
value- The value to test.- Returns:
- The
Missing.Extendedassociated 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.
-