powered by
Calculates the Random Field theory threshold to give that results in a specified p-value.
Threshold.RF(p.val, sigma, voxdim = c(1, 1, 1), num.vox, type = c("Normal", "t"), df = NULL)
Returns the Random Field threshold.
The required p-value.
The 3D covariance matrix of the random field.
The dimesnions of a voxel.
The number of voxels that constitute the random field.
The type of random field, "Normal" or "t".
The degrees of the t distributed field.
J. L. Marchini
Calculates the threshold that produces an expected Euler characteristic equal to the required p-value.
Note: This function is directly copied from "AnalyzeFMRI".
EC.3D
a <- Threshold.RF(p.val = 0.05, sigma = diag(1, 3), voxdim = c(1, 1, 1), num.vox = 10000) EC.3D(a, sigma = diag(1, 3), voxdim = c(1, 1, 1), num.vox = 10000)
Run the code above in your browser using DataLab