I don't know of any straightforward method in SAS. I would guess that it could be done in IML with sufficient programming skill, or maybe even in NLMIXED. I would be very curious to know others' opinions.
Steve Denham
Catch up on SAS Innovate 2026
Dive into keynotes, announcements and breakthroughs on demand.