Hi Rick,

First of all, thank you so much for providing this very useful funnel plot example.
I am beginner SAS programmer and was trying to copy the code and apply to my work.

I got error "ERROR: (execution) Matrix has not been set to a value." on the following code

nTrials = T(do(4,200,10)) // T( do(200, round(max(Trials)+20, 50), 50) );
prob = {0.025 0.975};

But when I searched it up in one of your other example and I found the following code which kind of explain the parameters, but still not exactly:
/* plot limits at equally spaced points between min & max */
minN = min(Trials); maxN = max(Trials);
n = T( do(minN, maxN, (maxN-minN)/20) );
n = round(n); /* binomial parameter must be integer */
p = {0.001 0.025 0.975 0.999}; /* lower/upper limits */
/* compute matrix with four columns, one for each CL */

Could you please explain how I can customize the code in below:
nTrials = T(do(4,200,10)) // T( do(200, round(max(Trials)+20, 50), 50) );

Thank you so much for your help!

Yichuan