Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Octave's statistics is not loaded for f-tests #29

Open
jorgman1 opened this issue Jun 14, 2021 · 1 comment
Open

Octave's statistics is not loaded for f-tests #29

jorgman1 opened this issue Jun 14, 2021 · 1 comment
Assignees
Labels

Comments

@jorgman1
Copy link

I encountered a small problem when running PALM on Debian 10.9 (Octave 4.4.1). When it came to the f-contrasts, the "betainv" function from the statistics package was not loaded and it yielded the following error:

Building null distribution.
80% [Design 1/1, Contrast 9/10, Shuffling 1/5000, Modality 1/1]
Saving file: palm_vox_fstat_c9
warning: implicit conversion from numeric to char

Error using palm_gtoz (/opt/PALM/palm_gtoz.m:92)
'betainv' undefined near line 92 column 19

Error in palm_core (/opt/PALM/palm_core.m:1626->palm_gtoz)
Error in palm (/opt/PALM/palm.m:81->palm_core)

I solved it by always forcing the package load in palm_takeargs.m (line 1744). I guess there is an "opts.fstat" or similar, that can be added to the if-clause, but I could not find the correct name.

if palm_isoctave
    pkg load statistics
    if opts.spatial.do && any(plm.Yisvol)
        pkg load image
    end
    if opts.accel.lowrank || opts.zstat || opts.corrcon
        pkg load statistics
    end
end
@andersonwinkler
Copy link
Owner

Hi jorgman1,

Thanks for indicating this. It's a change that can be made for the next version, absolutely. Thanks!

All the best,

Anderson

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants