Deal of The Day! Hurry Up, Grab the Special Discount - Save 25% - Ends In 00:00:00 Coupon code: SAVE25
Welcome to Pass4Success

- Free Preparation Discussions

SAS Exam A00-231 Topic 1 Question 11 Discussion

Actual exam question for SAS's A00-231 exam
Question #: 11
Topic #: 1
[All A00-231 Questions]

SIMULATION

Scenario:

This project will use data setcert.input36. At any time, you may save your program asprogram36 in cert\programs. Write a SAS program that will clean the data incert.input36as follows:

Step 1:

create a temporary data set, cleandata36.

In this data set, convert all case.

Then keep only observations with group equal to 'A' or 'B'.

Step 2:

Determine the MEDIAN value for the Kilograms variable for each group(A,B) in the cleandata36

data set. Round MEDIAN to the nearest whole number.

Step 3:

Create results.output36 from cleandata36

Ensure that all values for variable Kilogramsare between 40 and 200, inclusively.

If the value is missing or out of range, replace the value with the MEDIAN Kilograms value for the respectivegroup(A,B) calculated in step 2

Show Suggested Answer Hide Answer
Suggested Answer: A


Contribute your Thoughts:

Stacey
1 days ago
I think this question is quite challenging.
upvoted 0 times
...
Trinidad
1 days ago
Hmm, I wonder if there's a way to do this all in one step instead of creating a temporary data set. But overall, the steps make sense. I'll give it a try!
upvoted 0 times
...
Peggy
5 days ago
Looks good! Step 1 is straightforward, and Step 2 will help handle any missing or out-of-range values in Step 3. The median calculation is a nice touch.
upvoted 0 times
...

Save Cancel