Learn R Programming

bindata (version 0.9-20)

condprob: Conditional Probabilities of Binary Data

Description

Returns a matrix containing the conditional probabilities \(P(x_i=1|x_j=1)\) where \(x_i\) corresponds to the i-th column of x.

Usage

condprob(x)

Arguments

x

matrix of binary data with rows corresponding to cases and columns corresponding to variables.