Factor analysis of data matrices