Closed EveCharbie closed 4 months ago
Thank you for reporting this bug! I have not previously seen a dataset for which reml
did not converge, so thank you very much for finding and reporting this problem!
Please find that I have updated the code with a fix that returns the result (rather than None
) if the total number of iterations K
is reached, where K
has a default value of 128.
If you used pip
to install spm1d then you can upgrade to the most recent version using:
pip install spm1d --upgrade
After upgrading please confirm that you are using the most recent version (0.4.28)
Additional notes:
reml
procedure does not converge in this case likely due to the data distribution; reml
is a parametric procedure that presumes normalityspm1d.stats.nonparam.ttest2
in this case)equal_var
to True
then it will execute without errorsequal_var=True
, (2) equal_var=False
or (3) spm1d.stats.nonparam.ttest2
Hi :) Thank you very much for the super quick and detailed answer! The fix works as a charm.
When I try to do
I get the following error message:
because my data never meet the condition dF < 0.1 l.230 from spm1d/stats/_reml.py, meaning that the function relm returns None. I have a sample with regions of small dispersion (1e-3). The data is attached. Could someone help me fix this issue? data.zip