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 in eval(predvars, data, env) : object 'voxel1con_images' not found #7

Open
BenedettaCecconi opened this issue May 16, 2024 · 0 comments

Comments

@BenedettaCecconi
Copy link

Hello,

I'm trying to run the function lmervoxel on SPM-generated 1st level contrast images. I keep getting this error and I don't know where this variable "voxel1..." comes from. I input con_images (my dependent variable) as paths to the lmervoxel function, together with a mask and covariates:

Loop over each subject and session

for (i in 1:length(con_images)) {
Select the NIfTI image path for the current subject

current_image_path <- con_paths[[i]]
Call the lmerVoxel function with the selected image path

lmerVoxel(image = current_image_path, mask = mask_path, fourdOut = fourd_out_path,
formula = formula,
subjData = cov_reduced_data, mc.preschedule = TRUE, ncores = 1)
}

Each con_image is an image array double:
image

the formula I use is the following:

formula <- "con_images ~ Group + Propofol_Concentration + Gender + (1 + session| Subjects) + (1 + Subjects| Propofol_Concentration)"

When I run the code, it says:

[1] "Created time series to matrix"
[1] "Created formula list"
[1] "Running test model"
Error in eval(predvars, data, env) : object 'voxel1con_images' not found

Can someone help, please?

Thanking a lot in advance,

Benedetta

@BenedettaCecconi BenedettaCecconi changed the title Error in eval(predvars, data, env) : object 'voxel1con_images' not found #1 Error in eval(predvars, data, env) : object 'voxel1con_images' not found May 16, 2024
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

1 participant