powered by
This is a function for simulation data based on the real base brain image data and difference in brain between healty and disease groups.
simbrain( baseimg, diffimg, sdevimg = NULL, mask = NULL, n0 = 10, c1 = 0.5, sd1 = 0.01, rho = NULL, zeromask = FALSE, reduce = c("no", "rd1", "rd2")[1], output = c("rdata", "nifti")[1], seed = 1 )
data matrix
binary group variable
binary brain position.
three dimensional vector for image dimension
an array for the basis image.
an array for the difference image.
an array for the standard deviation image.
an array for the mask image.
a numeric, which is a sample size per group.
a numeric, the strength of the difference
a numeric, standard deviation for the individual variation.
a numeric, correlation coefficient in the noize
a logical, whether mask the position with zero values for all subjects.
a vector.
a numeric for seed for random variables.
simbrain requires a base brain image data and mean difference image data.
simbrain
data(baseimg) data(diffimg) sim1 = simbrain(baseimg = baseimg, diffimg = diffimg)
Run the code above in your browser using DataLab