Computes the conditional probability \(P(Y = 1 \mid X = 0)\)
for two binary vectors `y` and `x`. Rows with missing values in either vector
are excluded.
Usage
cprob_inv(y, x)
Value
A numeric scalar giving the conditional probability that `y = 1`
given `x = 0`.
Arguments
y
A binary outcome vector (0/1 or logical). Must be the same length as
`x`.
x
A binary predictor vector (0/1 or logical). Must be the same length
as `y`.