GetApproximateMaximumDValueFromTwoByTwoContingencyTable {CausalR} | R Documentation |
Computes an approximate maximum D value (or weight). The calculation is approximate since only the first valid D value that is round. This has been done to speed up the overall algorithm - to get the exact answer use GetMaximumDValueFromTwoByTwoContingencyTable.
GetApproximateMaximumDValueFromTwoByTwoContingencyTable(n_pp, n_pm, n_mp, n_mm, predictionListStats, experimentalDataStats, logOfFactorialOfPredictionListStats, returnlog = FALSE)
n_pp |
the count n++ from the prediction-observation contingency matrix |
n_pm |
the count n+- from the prediction-observation contingency matrix |
n_mp |
the count n-+ from the prediction-observation contingency matrix |
n_mm |
the count n– from the prediction-observation contingency matrix |
predictionListStats |
a vector containing the values q+, q- and q0: the number of positive, negative, non-significant/contradictory predictions |
experimentalDataStats |
a vector containing the values n+, n- and n0: the number of positive, negative, non-significant/contradictory observations |
logOfFactorialOfPredictionListStats |
a vector containing the log of the factorial value for each entry in predictionListStats |
returnlog |
return the result as a log, default is FALSE |
the maximum D value or weight