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 / 10
Processing Variables with Arrays
Question 1 of 10



For the first observation, what is the value of diff{i} at the end of the second iteration of the DO loop?

B01-C016-S01-7-question.jpg

array wt{*} weight1-weight10;
array diff{9};
do i=1 to 9;
    diff{i}=wt{i+
1}-wt{i};
end;




Saving progress… My progress