A little announcement. A lot to explore.

Happy learning!

Explore lessons, including SAS & R programs and practice data.

Search lessons

Type at least 3 characters to see matching lessons.

1 / 5
Data Step - by groups
Question 1 of 5



When the code below is executed on the dataset shown in screenshot, how many number of times the value of last_sex will be 1?

proc sort data=sashelp.class out=class01 ;

   by sex;

run; 

data class02;

    set class01;

    by sex;

    first_sex=first.sex;

    last_sex=last.sex;

run;





Saving progress… My progress