CFA_data {gspcr}R Documentation

CFA example data

Description

Contains a data set used to develop and test the main features of the gspcr package. The data contains 50 predictors generated based on true number of principal components.

Format

CFA_data is a list containing two objects:

Details

A supervised PCA approach should identify that only 5 components are useful for the prediction of y and that only the first 15 variables should be used to compute them.

Examples

# Check out the first 6 rows of the predictors
head(CFA_data$X)

# Check out first 6 elements of the dependent variable
head(CFA_data$y)

[Package gspcr version 0.9.5 Index]