describePredMat: Briefly describe a predictor matrix

Description Usage Arguments Details Value Examples

View source: R/describePredMat.R

Description

Briefly describe a predictor matrix

Usage

1
describePredMat(predMat, usePcNames = FALSE)

Arguments

predMat

a numeric matrix.

usePcNames

a scalar boolean value indicating whether or not to include a report about principal components.

Details

The function splits the predictor matrix by categories: overall, incomplete variables, complete variables and principal components. The number or predictors and the names of the predictors are then withdrawn for each variable in each category and are returned to the user.

Value

a list containing information about the names and numbers of predictors.

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
data(iris)                                                      
irisPredMat <- matrix(0, ncol = ncol(iris), nrow = ncol(iris))  
dimnames(irisPredMat) <- list(names(iris), names(iris))         
irisPredMat[1, 2] <- 1                                          
irisPredMat[3, 1] <- 1                                          
diag(irisPredMat) <- 1                                          
                                                                
## Describe example predictor matrix                            
describePredMat(                                                
  predMat = irisPredMat                                   
)                                                               

ppanko/immapTools documentation built on Nov. 21, 2019, 12:28 a.m.