Learn R Programming

wrMisc (version 1.15.3.1)

.getAmean2: Get A value for each group of replicates based on comp

Description

This function calculates the 'A' value (ie group mean) for each group of replicates (eg for MA-plot) comp is matrix telling which groups to use/compare, assuming that dat are already group-means)

Usage

.getAmean2(dat, comp)

Value

This function returns a numeric vector

Arguments

dat

(matrix or data.frame) main input

comp

(matrix) tells which groups to use/compare, assuming that dat are already group-means)

See Also

makeMAList

Examples

Run this code
.getAmean(matrix(11:18, ncol=4), gl(2,2))

Run the code above in your browser using DataLab