View source: R/twoway_projector.R
inverse_projection.cross_projector | R Documentation |
This function obtains the matrix that maps factor scores in the
latent space back into the original domain (X or Y). By default,
we assume v_domain
is not necessarily orthonormal or invertible,
so we use a pseudoinverse approach (e.g. MASS::ginv).
## S3 method for class 'cross_projector'
inverse_projection(x, domain = c("X", "Y"), ...)
x |
A |
domain |
Either |
... |
Additional arguments (currently unused, but may be used by subclasses). |
A matrix that, when multiplied by the factor scores, yields the reconstruction in the specified domain's original space.
# Suppose 'cp' is a cross_projector object. If we want the
# inverse for the Y domain:
# inv_mat <- inverse_projection(cp, domain="Y")
# Then reconstruct: Yhat <- Fscores %*% inv_mat
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.