As far as I know, a confusion matrix exists when you try to predict a categorical response. Please explain what it means to compute a confusion matrix for a continuous target variable.
The target variable must be: 0, 1, and that's it. Nothing in between.
Per definition, a confusion matrix works with yes/no values.
You usually specify a cutoff to make it binary.
If you're using PROC LOGISTIC there's the CTABLE option on the MODEL statement and you specify the different cutoffs you want to test with the PPROB option.
@Paul_CA wrote:
How do i construct confusion matrix when the target variable is continuous in SAS EG? Thanks
SAS Innovate 2025 is scheduled for May 6-9 in Orlando, FL. Sign up to be first to learn about the agenda and registration!
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.