Package ubic.basecode.math.metaanalysis
Class MeanDifferenceMetaAnalysis
java.lang.Object
ubic.basecode.math.metaanalysis.MetaAnalysis
ubic.basecode.math.metaanalysis.MeanDifferenceMetaAnalysis
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_iwhere 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 Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiondoublegetBsv()doublegetE()doublegetN()doublegetP()doublegetQ()doublegetV()doublegetZ()doublerun(DoubleArrayList effects, DoubleArrayList cvar) doublerun(DoubleArrayList effects, DoubleArrayList controlSizes, DoubleArrayList testSizes) doublesamplingVariance(double d, double nC, double nT) CH eqn 18-7samplingVariances(DoubleArrayList effects, DoubleArrayList controlSizes, DoubleArrayList testSizes) Run eqn 18-7 on a set of effect sizes.Methods inherited from class ubic.basecode.math.metaanalysis.MetaAnalysis
fisherCombineLogPvalues, fisherCombinePvalues, metaFEWeights, metaRESampleVariance, metaREVariance, metaREWeights, metaVariance, metaVariance, metaZscore, qStatistic, qTest, weightedMean, weightedMean
-
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
- Parameters:
effects-cvar- Conditional variances.- Returns:
-
run
-
samplingVariance
public double samplingVariance(double d, double nC, double nT) CH eqn 18-7- Parameters:
d- effect sizenC- number of samples in control groupnT- 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:
-