Below is my code. I'm getting the output without error, but no plot.
data CHI.rep_sex;
input Survey $ Sex $ Count; DATALINES;
BRFSS MALE 80483
BRFSS FEMALE 129994
BRFSS MISSING 761
VOH MALE 982
VOH FEMALE 1817
VOH MISSING 7
;
Run;
ods graphics on;
proc corresp data=CHI.rep_sex dimens=1;
tables survey, sex;
weight count;
run;
You are performing a simple correspondence analysis. The ConfigPlot is only available for multiple correspondence analysis. Try this:
data rep_sex;
input Survey $ Sex $ Count;
DATALINES;
BRFSS MALE 80483
BRFSS FEMALE 129994
BRFSS MISSING 761
VOH MALE 982
VOH FEMALE 1817
VOH MISSING 7
;
proc corresp data=rep_sex MCA;
tables sex survey;
weight count;
run;
You are performing a simple correspondence analysis. The ConfigPlot is only available for multiple correspondence analysis. Try this:
data rep_sex;
input Survey $ Sex $ Count;
DATALINES;
BRFSS MALE 80483
BRFSS FEMALE 129994
BRFSS MISSING 761
VOH MALE 982
VOH FEMALE 1817
VOH MISSING 7
;
proc corresp data=rep_sex MCA;
tables sex survey;
weight count;
run;
Perfect, thank you!!
April 27 – 30 | Gaylord Texan | Grapevine, Texas
Walk in ready to learn. Walk out ready to deliver. This is the data and AI conference you can't afford to miss.
Register now and save with the early bird rate—just $795!
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.