pca_mip_data: PCA of MIP Data

Description Usage Arguments Value Examples

View source: R/analysis.R

Description

Using the output of impute_mip_data, principal component analysis will be condcuted and the resultant components returned, with the variance in the data explained by each component and the loadings of each component also returned.

Usage

1

Arguments

dat

output of impute_mip_data

Value

Invisibly returns a list of class 'prcomp' with the following components

Examples

1
2
3
4
5
6
dat <- dummy_data()
dat <- filter_misc(dat = dat)
dat <- filter_coverage(dat = dat, min_coverage = 2)
dat <- melt_mip_data(dat = dat)
dat <- impute_mip_data(dat = dat)
pca <- pca_mip_data(dat = dat)

mrc-ide/mipmapper documentation built on May 20, 2019, 3:27 p.m.