brainGraph_GLM_fit_t
fits a linear model for t-contrasts (i.e.,
uni-dimensional contrasts) and returns the contrasts of parameter estimates,
standard errors, t-statistics, and p-values. If a contrast matrix is
supplied, it will return the above values for each row of the matrix.
brainGraph_GLM_fit_f
fits a linear model for f-contrasts (i.e.,
multi-dimensional contrasts) and returns the extra sum of squares due
to the full model, the sum of squared errors of the full model, the
f-statistic, and associated p-value.
brainGraph_GLM_fit_t(X, y, XtX, con.mat)brainGraph_GLM_fit_f(X, y, dfR, con.mat, rkC, CXtX)
Numeric matrix, if you wish to supply your own design matrix
(default: NULL
)
Numeric vector; the outcome variable
Numeric matrix
Numeric matrix specifying the contrast(s) of interest; if only one contrast is desired, you can supply a vector
Integer; residual degrees of freedom
Integer; rank of the contrast matrix
Numeric matrix
brainGraph_GLM_fit_t
- A list containing:
The contrast of parameter estimates
The standard error
brainGraph_GLM_fit_f - A list containing:
The extra sum of squares due to the full model divided by the rank of the contrast matrix
The sum of squared errors of the full model
The contrast number; defaults to 1
For speed purposes (if it is called from brainGraph_GLM
and
permutation testing is done), this function does not do argument checking.