Skip to contents

Computes the second-order moment matrix (uncentered covariance/co-occurrence) for a given matrix (usually binary responses).

Usage

compute_M2(mat)

Arguments

mat

A numeric matrix of responses.

Value

A numeric matrix representing the second-order moments.