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
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 lock in 2025 pricing—just $495!
Still thinking about your presentation idea? The submission deadline has been extended to Friday, Nov. 14, at 11:59 p.m. ET.
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.