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!
Amber
Bootstrap resample NA handling
Moderators: EViews Gareth, EViews Jason, EViews Moderator, EViews Matt
-
- Fe ddaethom, fe welon, fe amcangyfrifon
- Posts: 13317
- Joined: Tue Sep 16, 2008 5:38 pm
Re: Bootstrap resample NA handling
Code: Select all
series.resample(fixna)
Follow us on Twitter @IHSEViews
Re: Bootstrap resample NA handling
Thanks for you reply,
I have a question on block resampling: if block=10, can I use code as "x.resample(fixna,block=10)"?
Thanks again!
I have a question on block resampling: if block=10, can I use code as "x.resample(fixna,block=10)"?
Thanks again!
-
- Fe ddaethom, fe welon, fe amcangyfrifon
- Posts: 13317
- Joined: Tue Sep 16, 2008 5:38 pm
Who is online
Users browsing this forum: No registered users and 38 guests