Skip to content

meaning of pg.compute_bootci() with custom function #274

Answered by raphaelvallat
FlorinAndrei asked this question in Q&A
Discussion options

You must be logged in to vote

@FlorinAndrei you are right — I have just looked at the implementation of the recently-added scipy.stats.bootstrap and they indeed do resample each group separately when paired=False, which makes more sense because otherwise you're discarding data if x and y do not have the same length. My implementation was based on Matlab's bootci which only support the case where x and y have the same length:

When you use multiple data input arguments d1,...,dN, you can specify some arguments as scalar values, but all nonscalar arguments must have the same number of rows.

I'll open an issue for this. Thanks

Replies: 4 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by raphaelvallat
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants