| gmr | R Documentation |
Computes the generalized means rotation for a given set of ENA points and predictor variables.
gmr(V, X)
V |
A matrix containing ENA set points for projection. |
X |
A data frame containing all predictor variables, with the first column as the target variable. |
If X has only one column, a linear model is fit between V and the single predictor.
Otherwise, the main effect of the first predictor is extracted using get_x1_main_effect.
Singular value decomposition (SVD) is then performed, and the first right singular vector is used
to project the data. A linear model is fit to the projected data, and the coefficients are normalized
to produce the rotation vector.
A numeric vector representing the rotation.
get_x1_main_effect
## Not run:
V <- matrix(rnorm(100), ncol = 5)
X <- data.frame(target = rnorm(20), predictor1 = rnorm(20), predictor2 = rnorm(20))
r <- gmr(V, X)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.