multiway
object.
"resign"(x, mode="B", newsign=1, ...)
"resign"(x, mode="A", newsign=1, absorb="C", ...)
"resign"(x, mode="A", newsign=1, absorb="C", method="pearson", ...)
"resign"(x, mode="B", newsign=1, ...)
"resign"(x, mode="A",newsign=1, ...)
x
is of class "parafac2" and mode="A"
you can input a list of covariates (see Details).
mode
(cannot be equal to mode
).
newsign
is a list input (see Details).
x
is of class "parafac2" and mode="A"
, the input newsign
can be a list where each element contains a covariate vector for resigning Mode A. You need length(newsign[[k]]) = nrow(x$A$H[[k]])
for all k
when newsign
is a list. In this case, the resigning is implemented according to the sign of cor(newsign[[k]], x$A$H[[k]]%*%x$A$G[,1], method)
. See Helwig (2013) for details.
See indscal
, parafac
, parafac2
, sca
, and tucker
for more details.
### see examples for indscal, parafac, parafac2, sca, and tucker
Run the code above in your browser using DataLab