Convert SAS code to R

Convert HPOG SAS code to R.