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
Are you ready for the spotlight? We're accepting content ideas for SAS Innovate 2025 to be held May 6-9 in Orlando, FL. The call is open until September 25. Read more here about why you should contribute and what is in it for you!
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.