troubleshooting Question

# Random Samples of a Universe

Math / ScienceMiscellaneousProgramming Theory
I am pulling a random sample from a list of prescription drugs and I want to make sure that my process is logical/valid.

I have a spreadsheet with 8100 rows of unique NDC numbers. Sometimes, in this list, more than one NDC number correspond to the same prescription drug. (For example, NDC #s 0093-4127-74 and 0093-4127-73 together count as 1 Penicillin).

I am thinking of using RAT-STATS to generate 50 numbers in sequential order (Samples) and 10 numbers in Random Order (spares) from the sampling frame 1 (low number) to 8100 (high number).

However, if by chance more than one of the 8100 NDC numbers, that correspond to the same drug, are randomly selected in the sample of 50, can I then use a spare that does not correspond to the same drug in order to have a total of 50 unique samples from the universe?

This is to avoid having to go through 8100 rows of NDC numbers and remove those that mean the same drug, and THEN run RAT-STATS. I hope I am making sense. Thank you in advance for the help.
Join the community to see this answer!
###### Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.