You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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:
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
The text was updated successfully, but these errors were encountered:
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
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:
Each con_image is an image array double:
![image](https://private-user-images.githubusercontent.com/103193288/331158280-aa2cd75b-a740-45ee-8dfd-83e08c45c7ff.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MzkzNDI4NTIsIm5iZiI6MTczOTM0MjU1MiwicGF0aCI6Ii8xMDMxOTMyODgvMzMxMTU4MjgwLWFhMmNkNzViLWE3NDAtNDVlZS04ZGZkLTgzZTA4YzQ1YzdmZi5wbmc_WC1BbXotQWxnb3JpdGhtPUFXUzQtSE1BQy1TSEEyNTYmWC1BbXotQ3JlZGVudGlhbD1BS0lBVkNPRFlMU0E1M1BRSzRaQSUyRjIwMjUwMjEyJTJGdXMtZWFzdC0xJTJGczMlMkZhd3M0X3JlcXVlc3QmWC1BbXotRGF0ZT0yMDI1MDIxMlQwNjQyMzJaJlgtQW16LUV4cGlyZXM9MzAwJlgtQW16LVNpZ25hdHVyZT0zZmM2ZjVhZjczYzgzYzkzODZkNjg3NmNhYjUzMzRmOGQ2NWM3ZTljNzFiNjk3ODg5MTIwZjgyOWNjYjViYWJlJlgtQW16LVNpZ25lZEhlYWRlcnM9aG9zdCJ9.0ilpoaexjB0sP2vKaXX8BxrC-cao9hULQvUkrzZXCCM)
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:
Can someone help, please?
Thanking a lot in advance,
Benedetta
The text was updated successfully, but these errors were encountered: