mni.vertex.statistics {mni.cortical.statistics}R Documentation

Run a linear model at every vertex of a series of cortical stats files

Description

Uses a GLIM matrix and regresses the values at every vertex against the linear model. Any formula that is valid for lm is also valid here.

Usage

mni.vertex.statistics(glim.matrix, statistics.model, vertex.table=FALSE)

Arguments

glim.matrix The matrix to test against. Usually read using mni.read.glim.file.
statistics.model The model to test, where y takes the place of the independent variable. For example, 'y ~ Intercept + Group'
vertex.table A matrix containing the vertex data on which the analysis will be run. This matrix is best generated through mni.build.data.table. Alternately, the argument can be left as FALSE, in which case the vertex table will be built from the glim matrix specified as the first argument.

Value

Returns a list, each row corresponding to a vertex. There are columns corresponding to all the major statistical terms, such as the adjusted R squared, the fstatistics, etc. This list is usually fed into mni.write.vertex.stats for output to file.

See Also

mni.read.glim.file. mni.build.data.table. mni.mean.statistics. mni.write.vertex.stats.


[Package Contents]