Class MeanDifferenceMetaAnalysis

java.lang.Object
ubic.basecode.math.metaanalysis.MetaAnalysis
ubic.basecode.math.metaanalysis.MeanDifferenceMetaAnalysis

public class MeanDifferenceMetaAnalysis extends MetaAnalysis
Meta-analysis methods from chapter 18 of Cooper and Hedges, sections 2.1 and 3.1

These methods use the standardized mean difference statistic d:

 d_i = ( X_i ˆ t - X_i ˆ c ) / s_i
 
where X i t is the mean of the treatment group in the ith study, X i ct is the mean of the control group in the treatment group in the ith study, and s i is the pooled standard deviation of the two groups. Essentially this is a t statistic.
Author:
pavlidis
  • Constructor Details

    • MeanDifferenceMetaAnalysis

      public MeanDifferenceMetaAnalysis(boolean fixed)
      Parameters:
      b -
  • Method Details

    • getBsv

      public double getBsv()
    • getE

      public double getE()
    • getN

      public double getN()
    • getP

      public double getP()
    • getQ

      public double getQ()
    • getV

      public double getV()
    • getZ

      public double getZ()
    • run

      public double run(DoubleArrayList effects, DoubleArrayList cvar)
      Parameters:
      effects -
      cvar - Conditional variances.
      Returns:
    • run

      public double run(DoubleArrayList effects, DoubleArrayList controlSizes, DoubleArrayList testSizes)
    • samplingVariance

      public double samplingVariance(double d, double nC, double nT)
      CH eqn 18-7
      Parameters:
      d - effect size
      nC - number of samples in control group
      nT - number of samples in test group
      Returns:
    • samplingVariances

      public DoubleArrayList samplingVariances(DoubleArrayList effects, DoubleArrayList controlSizes, DoubleArrayList testSizes)
      Run eqn 18-7 on a set of effect sizes.
      Parameters:
      effects -
      controlSizes -
      testSizes -
      Returns: