demodata = readRDS(system.file('demo_data/SPRENG_behdata_site1.rds',
package = 'VertexWiseR'))[1:5,]
CTv = readRDS(file = url(paste0("https://github.com",
"/CogBrainHealthLab/VertexWiseR/blob/main/inst/demo_data/",
"SPRENG_CTv_site1.rds?raw=TRUE")))[1:5,]
TFCEpos=TFCE_vertex_analysis(model=demodata[,c("sex","age")],
contrast=demodata[,"age"], surf_data=CTv, tail=1,
nperm=5, nthread = 2, VWR_check=FALSE)
#To threshold the results, you may then run:
#results=TFCE_threshold(TFCEpos, p=0.05, atlas=1)
#results$cluster_level_results
#Formula alternative:
#formula= as.formula("~ age + sex")
#TFCEpos=TFCE_vertex_analysis(formula=formula,
#formula_dataset=demodata, surf_data=CTv, tail=1,
#nperm=5, nthread = 2, VWR_check=FALSE)
Run the code above in your browser using DataLab