View source: R/strucpca_warper.R
strucpca_warper | R Documentation |
This function offers a more structured approach to feature space transformation
by allowing the user to transform different groups of predictor variables
separately. It generates a warper
object based on principal component
analyses applied to the feature subsets.
strucpca_warper(
xdata,
xvars,
wvars = NULL,
yvar,
uvars = NULL,
center = TRUE,
scale = TRUE,
positive = TRUE,
title = NULL
)
xdata |
A data frame containing the observations in the original feature space. |
xvars |
A list of character vectors with the column names of features in |
wvars |
A character vector of same length as |
yvar |
Name of the response variable (not to be transformed) |
uvars |
Optional list of same length as |
center |
Logical arguments indicating whether the data should
be centered and then scales. Both should be turned on ( |
scale |
Logical arguments indicating whether the data should
be centered and then scales. Both should be turned on ( |
positive |
Logical argument (default: |
title |
Optional name of the transformation, may be used for printing summaries or for plotting. |
An object of class warper
, rotation_warper
and strucpca_warper
.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.