PCRxform | R Documentation |
Obtain the dataframe with the Principal Components after the rotation for PCRegression. Requires related function PCAxform() ELo 201903 GWU DATS
PCRxform(df, y, zX = TRUE, zy = FALSE)
df |
The dataframe. |
y |
The y-variable column index number(int), or the name of y-variable |
zX |
T/F or 0/1 for z-score used on X-variables |
zy |
T/F or 0/1 for z-score used on the target y-variable |
The transformed dataframe.
tmp = PCAxform(USArrests,TRUE)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.