187k views
1 vote
What is the formatted value for the value of 100.3 given the following step?

proc format; value rates 1−<100= 'low' 101−∠200= 'medium' 200-300 = 'high' 'other' ='out of range'; run;
a. medium
b. 100.3
c. high
d. out of range

User Abjurato
by
8.6k points

1 Answer

6 votes

Final answer:

The value 100.3 is categorized as 'out of range' according to the custom format defined in the 'proc format' step in SAS, as it does not fall within the specified numerical ranges. Therefore, the correct option is d.

Step-by-step explanation:

The question asks about the result of applying a custom format in a proc format step in SAS (Statistical Analysis System). The given code snippet defines a format named 'rates' that categorizes numerical values into different groups based on their range. In particular:

• Values from 1 to less than 100 are labeled as 'low'.

• Values from 101 to less than 200 (with a non-standard symbol that should be interpreted as ≤ 200) are labeled as 'medium'.

• Values from 200 to 300 are labeled as 'high'.

• All other values receive the label 'out of range'.

The value in question is 100.3, which does not fall into any of the explicitly defined ranges. Therefore, based on the custom format provided, 100.3 would be labeled as 'out of range'. The formatted value for the value of 100.3 is d. out of range.

User Chris Upchurch
by
7.8k points