PCRxform: Obtain the dataframe with the Principal Components after the...

View source: R/idsXform.R

PCRxformR Documentation

Obtain the dataframe with the Principal Components after the rotation for PCRegression. Requires related function PCAxform() ELo 201903 GWU DATS

Description

Obtain the dataframe with the Principal Components after the rotation for PCRegression. Requires related function PCAxform() ELo 201903 GWU DATS

Usage

PCRxform(df, y, zX = TRUE, zy = FALSE)

Arguments

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

Value

The transformed dataframe.

Examples

tmp = PCAxform(USArrests,TRUE)

physicsland/ezids documentation built on Feb. 4, 2024, 2:13 a.m.