BookmarkSubscribeRSS Feed
avatar
Fluorite | Level 6

I have a dataset (226841 records) having 2 columns(Claim_num and ACCT). there are about 235 ACCT having claims ranging 1 to 24,648)

I would like to get optimal sample size from this set to audit.

proc surveyselect data=cag_out n=100

       out=Sample_all_out;     

      strata cag / ALLOC=PROP nosample;     

   run;

I getting error

ERROR: Variable PROP not found.

ERROR: Variable NOSAMPLE not found.

ERROR 22-322: Syntax error, expecting one of the following: a name, ;, -, :, DESCENDING, NOTSORTED, _ALL_, _CHARACTER_, _CHAR_,

              _NUMERIC_. 

ERROR 202-322: The option or parameter is not recognized and will be ignored.

any help is appreciated

Thanks

6 REPLIES 6
PGStats
Opal | Level 21

ALLOC=PROP appeared in SAS 9.2 Which version of SAS are you using?

PG

PG
avatar
Fluorite | Level 6

we are using 9.1. any other suggestion?

ballardw
Super User

How do you define optimal in this sense?

avatar
Fluorite | Level 6

I am interested in a procedure which gives sample size recommendation based on population size. is POWER procedure the one to consider?

Doc_Duke
Rhodochrosite | Level 12

All of the common statistical power/sample size procedures assume an infinite underlying (theoretical) population.  Working with fixed populations complicates the estimation.  Your 'population' is large enough to be functionally infinite.  However, you still need to optimize on something else.

Change your question to something that power works for.  Most likely, that would be to get a sufficient precision (s.d.) on an estimator of interest (cost?).

avatar
Fluorite | Level 6

Thank you very much for all your suggestions. We will be looking into Power procedure

hackathon24-white-horiz.png

The 2025 SAS Hackathon has begun!

It's finally time to hack! Remember to visit the SAS Hacker's Hub regularly for news and updates.

Latest Updates

Creating Custom Steps in SAS Studio

Check out this tutorial series to learn how to build your own steps in SAS Studio.

Find more tutorials on the SAS Users YouTube channel.

SAS Training: Just a Click Away

 Ready to level-up your skills? Choose your own adventure.

Browse our catalog!

Discussion stats
  • 6 replies
  • 2020 views
  • 0 likes
  • 4 in conversation