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

Error while estimating smoothness #19

Open
leniaamaral opened this issue Jun 7, 2023 · 1 comment
Open

Error while estimating smoothness #19

leniaamaral opened this issue Jun 7, 2023 · 1 comment

Comments

@leniaamaral
Copy link

Hi!

I'm trying to run the pTFCE function on R but I'm getting this error. Any idea what could be the problem?

pTFCE=ptfce(Z, MASK)

  • Estimating smoothness based on the data...

    |
    | | 0%Error in aperm.default(apply(R, c(1, 2, 3), scale), c(2, 3, 4, 1)) :
    'perm' is of wrong length 4 (!= 3)

I'm new to R, so apologies if this is an ignorant question.
Thanks!
Alex

@spisakt
Copy link
Owner

spisakt commented Aug 2, 2023

Hi Alex,

Sorry for the delay. It would be helpful to know some more details.
Can you tell me the dimensions of your images:

dim(Z)
dim(MASK)

Z seems to be recognized as a 4d volume...

Best wishes,
Tamas

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

No branches or pull requests

2 participants