joint_p: Joint probability between two indicators

View source: R/binary_multiESS.R

joint_pR Documentation

Joint probability between two indicators

Description

Joint probability between two indicators

Usage

joint_p(a, b, log = FALSE)

Arguments

a

a vector with an indicator variable.

b

a vector with an indicator variable.

log

logical. If TRUE returns the log probability.

Value

joint probability

Examples

X <- rbinom(1000, size = 1, p = .25)
Y <- rbinom(1000, size = 1, p = .75)
joint_p(X, Y)

maxbiostat/BinaryMarkovChains documentation built on Dec. 11, 2023, 4:29 a.m.