Learn R Programming

metaMA (version 2.1)

effectsize: Calculates effect sizes from given t or moderated t statistics

Description

Function not to be used separately.

Usage

effectsize(tstat, ntilde, m)

Arguments

tstat
Vector of test statistics and effect sizes.
ntilde
Proportion factor between a test statistic and its corresponding effect size.
m
Number of degrees of freedom.

Value

  • Matrix with one row per gene, and in column:
  • dCommonly used effect size (which is biased)
  • vardVariance of the commonly used effect size
  • dprimeUnbiased effect size
  • vardprimeVariance of the unbiased effect size

References

Marot, G., Foulley, J.-L., Mayer, C.-D., Jaffrezic, F. Moderated effect size combination for microarray meta-analyses and comparison study. Submitted.

Examples

Run this code
#for SMVar: 
#stati$TestStat[order(stati$GeneId)],length(classes[[i]]),stati$DegOfFreedom[order(stati$GeneId)])
#for Limma
#effectsize(fit2i$t,length(classes[[i]]),(fit2i$df.prior+fit2i$df.residual))

Run the code above in your browser using DataLab