multiway (version 1.0-2)

rescale: Rescales Multi-Way Factors

Description

Rescales factors from a multiway object.

Usage

"rescale"(x, mode="B", newscale=1, ...) "rescale"(x, mode="A", newscale=1, absorb="C", ...) "rescale"(x, mode="A", newscale=1, absorb="C", ...) "rescale"(x, mode="B", newscale=1, ...) "rescale"(x, mode="A", newscale=1, ...)

Arguments

x
Object of class "indscal" (output from indscal), class "parafac" (output from parafac), class "parafac2" (output from parafac2), class "sca" (output from sca), or class "tucker" (output from tucker).
mode
Character indicating which mode to rescale.
newscale
Desired mean-square for each column of rescaled mode. Can input a scalar or a vector with length equal to the number of factors for the given mode.
absorb
Character indicating which mode should absorb the inverse of the rescalings applied to mode (cannot be equal to mode).
...
Ignored.

Value

Same as input.

Details

See indscal, parafac, parafac2, sca, and tucker for more details.

References

Helwig, N. E. (2013). The special sign indeterminacy of the direct-fitting Parafac2 model: Some implications, cautions, and recommendations, for Simultaneous Component Analysis. Psychometrika, 78, 725-739.

Examples

Run this code

### see examples for indscal, parafac, parafac2, sca, and tucker

Run the code above in your browser using DataLab