GetApproximateMaximumDValueFromTwoByTwoContingencyTable {CausalR}R Documentation

computes an approximate maximum D value or weight

Description

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.

Usage

GetApproximateMaximumDValueFromTwoByTwoContingencyTable(n_pp, n_pm, n_mp, n_mm,
  predictionListStats, experimentalDataStats,
  logOfFactorialOfPredictionListStats, returnlog = FALSE)

Arguments

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

Value

the maximum D value or weight


[Package CausalR version 1.25.0 Index]