My code:
ODS OUTPUT ChiSq = data set (DROP = TABLE WHERE = (STATISTIC = 'Chi-Square'));
PROC PRINT DATA =data set;
RUN;
I get the following warning:
Hi Kristie,
Try adding
PROC FREQ DATA= LibName.Name;
TABLES Hypertension * State / NOPERCENT NOROW MISSING NOCUM CHISQ;
RUN;
It took me a while to get this on my code and this is what worked
The ODS OUTPUT statement needs to come immediately before in the body of Proc Freq.
Since you show not Proc Freq code there is nothing to create chi-square output of any flavor.
Hi Kristie,
Try adding
PROC FREQ DATA= LibName.Name;
TABLES Hypertension * State / NOPERCENT NOROW MISSING NOCUM CHISQ;
RUN;
It took me a while to get this on my code and this is what worked
@kristiepauly1 wrote:
Thanks Allie. That was all it was. I wrote a PROC FREQ for the
StatePercents and thought that was sufficient. During office hours I tried
adding the PROC FREQ after the ODS OUTPUT but it did not work. Now of
course, it worked. Sas hates me. Good Luck!
Likely not any where near as much as Excel hates me (an vice versa)😉
Registration is now open for SAS Innovate 2025 , our biggest and most exciting global event of the year! Join us in Orlando, FL, May 6-9.
Sign up by Dec. 31 to get the 2024 rate of just $495.
Register now!
Learn how use the CAT functions in SAS to join values from multiple variables into a single value.
Find more tutorials on the SAS Users YouTube channel.
Ready to level-up your skills? Choose your own adventure.