How to correct this call? bootstat(k2,k1) = mean(bootstrp(1000,@regress,s_vec,predictor));
1 view (last 30 days)
Show older comments
The bootstrp function is giving values greater than 1. stm(24,31) are observed values, svf(24,40) are the independent variable that are being bootstrap replacement sampled. Can someone please advise me on how to correct the script below.
Thank you very much, Norm
m=31
n=40
for k1=1:m
for k2=1:n
s_vec=stm(:,k1);
predictor=svf(:,k2);
NaN_index=find(isnan(s_vec));
s_vec(NaN_index)=[];
predictor(NaN_index)=[];
NaN_index=find(isnan(predictor));
s_vec(NaN_index)=[];
predictor(NaN_index)=[];
bootstat(k2,k1) = mean(bootstrp(1000,@regress,s_vec,predictor));
end
end
mean_v2 = mean(bootstat,2)
0 Comments
Answers (0)
See Also
Categories
Find more on Descriptive Statistics in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!