For a single gene, computes the transformed or untransformed sample covariance matrix
if one biological condition, or pooled sample covariance matrix if two or more biological conditions.
Usage
matrix.cov(x, k, trans = TRUE, c.grp = NULL, use = "complete.obs")
Arguments
x
a numeric vector giving the log-ratios or log-values for a gene, sorted
in ascending order by biological condition, replicate, and time groups.
k
a positive integer giving the number of time points.
trans
logical. Should the Helmert transformation be performed?
c.grp
a numeric vector corresponding to the biological condition group for each element of
x.
use
character. The same as the use in stats function cov.
The default uses complete observations.
Value
A numeric matrix.
Details
This function is for internal use only and is not to be called by the user.
References
Becker, R. A., Chambers, J. M. and Wilks, A. R. (1988) The New S
Language. Wadsworth & Brooks/Cole.