10-21-2015 09:28 AM
SAS Community, I found this code in an archive at work and it contains no comments. The idea is to calculate a reliable sample size. It is not working properly and I am seeking to understand each component.
The input table cy11rates contains the unique provider ID, risk adjusted rate of complication (rsrr_hwr) and total patient volumn. Is anyone familiar with this process that could help me understand?
do i=1 to volume;
if i<= numerator then n=1;
select sum(volume) into:cnt
proc freq data=temp;
tables provid /out=b;
proc summary sum data=c;
output out=new sum=nv;
proc print data=new2; run;
proc anova data=temp;
ods output OverallANOVA =anova_result;
create table reliability as
select distinct (Fvalue-1)/(Fvalue-1+t) as ICC,
t*(calculated ICC)/(1+(t-1)*(calculated ICC)) as reliability,
(0.7-0.7*(calculated ICC))/((calculated ICC)-(0.7*(calculated ICC))) as sample_size
10-21-2015 10:38 AM
Please describe how "it is not working properly". Error messages? Post the errors and log.
No output? Unexpected output? How is it unexpected.
Also dealing with sample size generation I would recommend looking into proc power.
10-21-2015 10:41 AM
Thank you for your reply. I received a sample size that was a negative number. My hope was to better understand the workings of the procedure so I could determine if adjustments are needed or if the code is bad. The hope was to get a general idea of each step. I will look into proc power though and appreciate that suggestion.
10-21-2015 10:48 AM
My understanding of proc power is to plan sample size for a comparison of means. In my analysis I do not have an intervention. I wish to know the minimum patient volume for a provider group so that a risk adjusted complication rate can be considered stable.