Skip to content

Commit

Permalink
Update ibootci.m
Browse files Browse the repository at this point in the history
  • Loading branch information
acp29 committed Mar 12, 2022
1 parent db3c7a1 commit 8acee41
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions inst/ibootci.m
Original file line number Diff line number Diff line change
Expand Up @@ -496,14 +496,14 @@
weights = [];
end
if ~isempty(strata)
if strcmpi(type,'bca')
error('ibootci cannot compute BCa intervals for stratified bootstrap')
end
try
strata = options{strata};
catch
strata = [];
end
if strcmpi(type,'bca')
error('ibootci cannot compute BCa intervals for stratified samples')
end
else
strata = [];
end
Expand All @@ -520,6 +520,9 @@
clusters = [];
end
if ~isempty(blocksize)
if strcmpi(type,'bca')
error('ibootci cannot compute BCa intervals for block bootstrap')
end
try
blocksize = options{blocksize};
catch
Expand Down

0 comments on commit 8acee41

Please sign in to comment.