troubleshooting Question

Random Samples of a Universe

Avatar of Nick Wolf
Nick WolfFlag for United States of America asked on
Math / ScienceMiscellaneousProgramming Theory
6 Comments2 Solutions707 ViewsLast Modified:
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!
Join our exclusive community to see this answer & millions of others.
Unlock 2 Answers and 6 Comments.
Join the Community
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.
Unlock 2 Answers and 6 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros