pooled.sd: Calculate pooled standard deviations for each protein with...

View source: R/pooled.sd.R

pooled.sdR Documentation

Calculate pooled standard deviations for each protein with missing data

Description

The pooled.sd function calculates the pooled standard deviation in each protein within technical replicates while accommodating possible missing data. When there is not enough replicates to calculate pooled standard deviations (number of non-missing samples is less than or equal to number of groups for example), a simple sample standard deviation is used. This step is needed when standardise is enabled in ruvms.

Usage

pooled.sd(Y, M)

Arguments

Y

The m-by-n data matrix with samples on the rows and measurements (proteins etc. ) on the columns. Missing data (NAs) are allowed.

M

The replication structure. See ruv::RUVIII for details.

Value

A numeric vector of pooled standard deviation of each measurement.


Mengbo-Li/ruvms documentation built on Nov. 14, 2023, 2:11 a.m.