Description Usage Arguments Details Value See Also Examples
View source: R/primary_analysis.R
process.standard.deviation
takes three replicates' data and
combines vector-wise into standard deviations while allowing a
single observation from each condition at most to be missing
(flagged as NA).
1 2 3 4 5 6 | process.standard.deviation(
vec.rep1,
vec.rep2,
vec.rep3,
use.sample.adjustment = TRUE
)
|
vec.rep1 |
numeric vector of first replicate Ct data |
vec.rep2 |
numeric vector of second replicate Ct data |
vec.rep3 |
numeric vector of third replicate Ct data |
use.sample.adjustment |
boolean of whether to use sqrt(N - 1) biased sample adjustment |
There is an implicit restriction that appears to be applied manually to the real data example, where conditions with fewer than two replicates are blanked. Hopefully, this should cover that situation, while allowing single dropouts. Strangely, the existing excel template uses sample standard deviation for telomere data and population standard deviation for control data. I don't know why this is the case but it's emulated here for the moment.
numeric vector of vector-wise averages, with NA exclusion criteria applied
process.average()
for equivalent calculation with mean
1 | vec.sd <- process.standard.deviation(rnorm(10), rnorm(10), rnorm(10))
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.