GetWeightsAboveHypothesisScoreForAThreeByTwoTable: updates weights for contingency table and produce values for...

Description Usage Arguments Value

View source: R/GetWeightsAboveHypothesisScoreForAThreeByTwoTable.r

Description

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.

Usage

1
2
3
GetWeightsAboveHypothesisScoreForAThreeByTwoTable(weights, r_p, r_m, r_z, n_p,
  n_m, predictionListStats, experimentalDataStats,
  logOfFactorialOfPredictionListStats, hypothesisScore, logepsDMax, logDMax)

Arguments

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

Value

a vector containing the hypothesis score and the total weight


CausalR documentation built on Nov. 8, 2020, 5:25 p.m.