That R at the start effectively allows only rows where Y is measured to have non-zero contributions to the estimating equations.

This covers Step 1

Comments