- Mark as New
- Bookmark
- Subscribe
- Mute
- RSS Feed
- Permalink
- Report Inappropriate Content
I am taking the practice exam for base programming, and was confused about the difference between the project requirements and answer key. Here is the description of the projects. It clearly says to subset the data using the variable kilograms between 40 and 200, inclusively. However, the answer code is kilograms <40 or kilograms >200 (please see the screenshots below). The results from PROC MEANS analysis are slightly different from what I manually calculated from the raw data, which for group A is 76.02 and group B is 86.25. Thanks in advance!
Accepted Solutions
- Mark as New
- Bookmark
- Subscribe
- Mute
- RSS Feed
- Permalink
- Report Inappropriate Content
It isn't actually subsetting the data. It is replacing out of range values. The extra piece of information is the in the bullet following the one highlighted. It is preserving the values inclusively between 40 and 200 and only executing the DO group to replace the values if they are outside this range.
Protecting the integrity of your SAS credential
- Mark as New
- Bookmark
- Subscribe
- Mute
- RSS Feed
- Permalink
- Report Inappropriate Content
The code in your picture actually is separating into two groups based on a range from 40 to 200 inclusive.
The test (40 <= A and A <= 200) is the same as NOT (A<40 or A>200).
- Mark as New
- Bookmark
- Subscribe
- Mute
- RSS Feed
- Permalink
- Report Inappropriate Content
It isn't actually subsetting the data. It is replacing out of range values. The extra piece of information is the in the bullet following the one highlighted. It is preserving the values inclusively between 40 and 200 and only executing the DO group to replace the values if they are outside this range.
Protecting the integrity of your SAS credential
- Mark as New
- Bookmark
- Subscribe
- Mute
- RSS Feed
- Permalink
- Report Inappropriate Content
Thank you for clarify this.