Search the site...

SASCRUNCH TRAINING
  • Home
  • Member's Area
  • How to Start
  • SAS Interface
  • Creating a Data Set
  • Practical SAS Training Course
  • SAS Certified Specialist Training Program
  • Proc SQL Course
  • Introduction to Time Series Analysis
  • SAS Project Training Course
  • Full Training / Membership
  • Sign up
  • About us
  • Contact us
  • Home
  • Member's Area
  • How to Start
  • SAS Interface
  • Creating a Data Set
  • Practical SAS Training Course
  • SAS Certified Specialist Training Program
  • Proc SQL Course
  • Introduction to Time Series Analysis
  • SAS Project Training Course
  • Full Training / Membership
  • Sign up
  • About us
  • Contact us
Sentry Page Protection
Please Wait...
Exercise (3-9)

Run the code in the yellow box before working on this exercise:
Picture

The EXPENSE data set contains a list of expense claims from a company's accounting department.

The accounting department is carrying out an audit on the expense claims. They'd like to randomly select a sample of the claims requested for auditing purposes.

Write a SAS program and randomly assign an integer to each claim. The integer should be:
  • randomly generated based on a uniform distribution
  • between 1 to 10 (inclusive)

The claims that are assigned the integer of five (5) will be selected for auditing purposes.

The final data set should includes ONLY the claims that are assigned the integer value of 5.
Next
Already a member? Go to member's area.