matrix.cov: Covariance

Description Usage Arguments Details Value Author(s) References See Also

View source: R/matrix.cov.R

Description

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

1
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.

Details

This function is for internal use only and is not to be called by the user.

Value

A numeric matrix.

Author(s)

Yu Chuan Tai yuchuan@stat.berkeley.edu

References

Becker, R. A., Chambers, J. M. and Wilks, A. R. (1988) The New S Language. Wadsworth & Brooks/Cole.

See Also

cov, ot.helmert.


timecourse documentation built on Nov. 8, 2020, 8:04 p.m.