Learn R Programming

bootcluster (version 0.4.2)

ref_dist_pca: Generate PCA-based reference distribution

Description

Generates a reference distribution in PCA space by sampling from uniform distributions with ranges determined by the PCA-transformed data.

Usage

ref_dist_pca(df)

Value

A scaled matrix containing the reference distribution in PCA space

Arguments

df

data.frame or matrix of the original dataset

Details

Generate Reference Distribution using PCA

Examples

Run this code
# \donttest{
data(iris)
df <- iris[,1:4]
ref <- ref_dist_pca(df)
# }

Run the code above in your browser using DataLab