119k views
5 votes
You want to apply the following user-defined format to the numeric variable Age. The values of Age are stored with one decimal place. Which of the following statements is true regarding the PROC FORMAT step?

proc format;
value $agegp low-65='Non Retirement'
66<-high='Retirement';
run;
a. The value 65 is not included in either of the specified ranges.
b. The value 66 will be displayed as Retirement.
c. The format name does not match the variable type.
d. The text strings for the formatted values cannot include spaces.

User Lomefin
by
8.1k points

1 Answer

5 votes

Final answer:

The format name does not match the variable type.

Step-by-step explanation:

c. The format name does not match the variable type.

In the given PROC FORMAT step, the format name is defined as $agegp, which suggests that it is a character format. However, the variable Age is stated to be a numeric variable. Therefore, the format name and variable type do not match, making statement c true.

Statements a, b, and d are false. Statement a is false because the value 65 is included in the range 'low-65', so it will be displayed as 'Non Retirement'. Statement b is false because the value 66 is included in the range '66<-high', so it will be displayed as 'Retirement'. Statement d is false because text strings for formatted values can include spaces.

User Markbse
by
8.2k points