Bootstrap resample NA handling
Posted: Fri Sep 07, 2012 3:34 pm
Dear Eviews Experts,
I have a problem occurred when I bootstrap a pool dataset, the pool is unbalanced data, thus when I used "resid.resample", the NAs also got resampled.
I want to keep the original NAs and only resample the non-NA data: "Exclude NAs from draws but copy NA rows to output".
I figured I should add some codes after "resample", will you please kindly tell me what is the code for that?
Thanks a million! :D
Amber
I have a problem occurred when I bootstrap a pool dataset, the pool is unbalanced data, thus when I used "resid.resample", the NAs also got resampled.
I want to keep the original NAs and only resample the non-NA data: "Exclude NAs from draws but copy NA rows to output".
I figured I should add some codes after "resample", will you please kindly tell me what is the code for that?
Thanks a million! :D
Amber