![]() ![]() You can use either single quotation marks ( ‘x’) or double quotation marks ( “x”). For example, to filter only the diseased individuals, type DiseaseStatus = ‘sick’ in the Filter field. To filter your data using a character variable, you must enclose the character string defining the condition to be met within quotation marks. To continue the example listed above, to filter out those frequency observations that are not reported (indicated by the missing value symbol (.)), type Freq in the Filter field. SAS treats numeric values of zero (0) or that are missing (.) as false. For example, to select only those rows whose numeric value in the Freq variable exceeds 0.5, type Freq > 0.5 in the Filter field. To filter the data based on a numeric variable, enter the name of the variable followed by a space, the relevant operator followed by a space, and the condition to be met. The variable type determines how you specify that variable. Character variables can contain numbers, letters, and symbols. ![]() The values listed in numeric variables must be numeric. You must enter the name exactly as it appears in the data set. Each variable has a name and a type (numeric or character) and contains values.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |