R package to correct for generated regressor


I hope you guys can help me. I have a question if there is a package availabe that allows to correct for the standard errors of a generated regressor. The Data I have is survey with several years of observations from individuals. I take only one year to generate a regressor in the first stage where:


and in the second stage I regress on:


I don't know how use bootstrap in this case and wonder if there is a certain package available for this problem?

Thanks in advance!

This topic was automatically closed 21 days after the last reply. New replies are no longer allowed.

If you have a query related to it or one of the replies, start a new topic and refer back with a link.