lssem package
article on sem as matrix decomposition
article on factor analysis
code