Learn R Programming

LRMF3 (version 0.1.0)

fa_like: Create a Factor Analysis-like low rank matrix factorization object

Description

A low rank matrix factorization of a matrix X is parameterized by X ~= X %*% B %*% t(Y). The object is "factor analysis-like" because the middle matrix in the decomposition is arbitrary rather than diagonal.

Usage

fa_like(Z, B, Y, subclasses = NULL, ...)

Arguments

Z

A matrix of embeddings for each observation.

B

A mixing matrix describing how observation embeddings and topics interact. Does not have to be diagonal!

Y

A matrix describing the compositions of various topics or factors.

subclasses

A character vector of subclasses. Optional, defaults to NULL.

...

Optional additional items to pass to the constructor.

Examples

Run this code
# NOT RUN {
s <- svd(as.matrix(trees))

fa_like(s$u, diag(s$d), s$v)

# }

Run the code above in your browser using DataLab