getProbRD: Calculate risks from arctanh RD and log OP (vectorised)
Description
Calculate risks from arctanh RD and log OP (vectorised)
Usage
getProbRD(atanhrd, logop)
Arguments
atanhrd
arctanh of risk difference
logop
log of odds product
Value
a matrix \((P(y=1|x=0),P(y=1|x=1))\) with two columns
Details
The \(log OP\) is defined as \(log OP = log[(P(y=1|x=0)/P(y=0|x=0))*(P(y=1|x=1)/P(y=0|x=1))]\).
The inverse hyperbolic tangent function arctanh is defined as \(arctanh(z) = [log(1+z) - log(1-z)] / 2\).