This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import numpy as np | |
def correspondence_analysis(x): | |
"""Correspondence Analysis on frequency table x | |
as described in Härdle & Simar (2012) "Applied Multivariate Statistical Analysis" | |
Parameters | |
---------- | |
x : np.ndarray | |
n-by-m table of counts or frequencies of m categories in n samples | |