Hi there,
I was I am quite novice in sas programming. I would really appreciate if someone can help me in solving my data analysis. I am doing a retrospective cohort study and trying to compare if operations done during the afterhours have more complications than daytime. I am doing a chisq test. I imported my data correctly in sas. As i can see that sas can read my data. However, when i am running chi sq test , it put in 1 in reach of the cells of the contingency table.
Please see my data steps below and the screenshot of the sas error result My dataSas error resultand my dataset attached.
filename refile '/home/u62871531/Audit.xlsx';
proc import datafile=refile
DBMS=XLSX
out=audit
replace;
run;
proc freq data=audit order=freq;
tables Group*Complications/chisq norow nopercent measures expected;
run;