public class ZScores extends Object
| Constructor and Description |
|---|
ZScores() |
| Modifier and Type | Method and Description |
|---|---|
static double |
betaToZ(double b,
double se,
double n) |
static double |
correlationToP(double correlation,
int nrSamples,
cern.jet.random.tdouble.StudentT tDist)
Returns the two-sided p-value for a given correlation coefficient from
Student's t distribution.
|
static double |
correlationToZ(double correlation,
int nrSamples,
cern.jet.random.tdouble.StudentT tDist)
Returns the Z-score for a given correlation coefficient from Student's t
distribution.
|
static double |
extrapolateZScore(int originalSampleSize,
int newSampleSize,
double originalZ) |
static double |
getWeightedZ(double[] zScores,
int[] sampleSizes)
Calculates a weighted Z-score according to Whitlock's paper:
http://www.ncbi.nlm.nih.gov/pubmed/16135132 Square root of the sample
size is used as the weight for each test.
|
static double |
getWeightedZ(double[] zScores,
int[] sampleSizes,
double[] weights)
Calculates a weighted Z-score according to Whitlock's paper:
http://www.ncbi.nlm.nih.gov/pubmed/16135132 Square root of the sample
size is used as the weight for each test.
|
static double |
getWeightedZ(float[] zScores,
int[] sampleSizes)
Calculates a weighted Z-score according to Whitlock's paper:
http://www.ncbi.nlm.nih.gov/pubmed/16135132 Square root of the sample
size is used as the weight for each test.
|
static double |
pToZ(double p)
Returns the absolute Z-score for a given p-value using a normal
distribution.
|
static double |
zScoreToCorrelation(double obsZ,
int nrSamples) |
static double |
zToP(double z)
Returns the p-value corresponding to the given Z-score assuming a two
tailed-test.
|
public static double getWeightedZ(float[] zScores,
int[] sampleSizes)
zScores - Z-scores from individual testssampleSizes - sample sizes of these testspublic static double getWeightedZ(double[] zScores,
int[] sampleSizes)
zScores - Z-scores from individual testssampleSizes - sample sizes of these testspublic static double getWeightedZ(double[] zScores,
int[] sampleSizes,
double[] weights)
zScores - Z-scores from individual testssampleSizes - sample sizes of these testspublic static double zToP(double z)
z - A Z-score to convertpublic static double pToZ(double p)
p - p-valuepublic static double correlationToZ(double correlation,
int nrSamples,
cern.jet.random.tdouble.StudentT tDist)
correlation - correlation coefficient (r)nrSamples - number of samples usedpublic static double correlationToP(double correlation,
int nrSamples,
cern.jet.random.tdouble.StudentT tDist)
correlation - correlation coefficient (r)nrSamples - number of samples usedpublic static double zScoreToCorrelation(double obsZ,
int nrSamples)
public static double extrapolateZScore(int originalSampleSize,
int newSampleSize,
double originalZ)
public static double betaToZ(double b,
double se,
double n)
Copyright © 2015. All Rights Reserved.