
asMatrixWeights(weights, dim)
dim
.
weights
has length equal to the number of probes, it is assumed to contain probe-weights.
If it has length equal to the number of arrays, it is assumed to contain array-weights.
If the number of probes is equal to the number of arrays, then weights
is assumed to contain array-weights if it is a row-vector of the correct size, i.e., if it is a matrix with one row.This function is used internally by the linear model fitting functions in limma.
modifyWeights
.An overview of functions in LIMMA used for fitting linear models is given in 06.LinearModels.
asMatrixWeights(1:3,c(4,3))
asMatrixWeights(1:4,c(4,3))
Run the code above in your browser using DataLab