Hello,
I am trying to randomly sample a sub-data for review. I have a dataset with 17,000 encounters and I want to draw a random sample of 1500. I have several factors I want to sample on.
1 - Within a before and after implementation of surgery protocol
2 - Within the department (4 departments)
3 - Within the surgeons in the health care facility
4 - Within the protocol use variable (whether the surgeon adopted the protocol or not)
5 - Within the patient encounters as some patients visited multiple times
I am using the code below but my data returns all empty cells
[Code]
sample 8.8, by(time dept surgeon prot enc)
I am trying to randomly sample a sub-data for review. I have a dataset with 17,000 encounters and I want to draw a random sample of 1500. I have several factors I want to sample on.
1 - Within a before and after implementation of surgery protocol
2 - Within the department (4 departments)
3 - Within the surgeons in the health care facility
4 - Within the protocol use variable (whether the surgeon adopted the protocol or not)
5 - Within the patient encounters as some patients visited multiple times
I am using the code below but my data returns all empty cells
[Code]
sample 8.8, by(time dept surgeon prot enc)
Comment