You may check this link https://communities.sas.com/t5/Statistical-Procedures/Translate-code-from-R-to-SAS/m-p/140653#M7339 https://support.sas.com/documentation/cdl/en/imlug/63541/HTML/default/viewer.htm#imlug_r_sect012.htm hopeful it will help you.
... View more