GetWeightsAboveHypothesisScoreForAThreeByTwoTable {CausalR} | R Documentation |
Finds the D-Values (weights) from any 3x2 contingency tables that have a score above and including the hypothesis score. It also calculates the total weight, and returns a 2x1 vector of the two values. The ratio of these values is the p-value.
GetWeightsAboveHypothesisScoreForAThreeByTwoTable(weights, r_p, r_m, r_z, n_p, n_m, predictionListStats, experimentalDataStats, logOfFactorialOfPredictionListStats, hypothesisScore, logepsDMax, logDMax)
weights |
Weights |
r_p |
the row sum r+ |
r_m |
the row sum r- |
r_z |
the row sum r0 |
n_p |
the column sum n+ |
n_m |
the column sum n- |
predictionListStats |
a list of prediction statistics |
experimentalDataStats |
the observed experimental data |
logOfFactorialOfPredictionListStats |
log factorial's of prediction list stats |
hypothesisScore |
the hypothesis score to be considered |
logepsDMax |
log of epsilon logD Maximum value |
logDMax |
a logD Maximum value |
a vector containing the hypothesis score and the total weight