var_explained: Percent of variance explained by each component of fitted...

Description Usage Arguments Value Examples

View source: R/VarExplained.R

Description

Percent of variance explained by each component of fitted SLIDE model

Usage

1

Arguments

slide

Output from slide function

pvec

A vector of values p_1,....,p_d corresponding to the number of measurements within each view.

Value

A list with the elements

var_total

A vector of length r (number of components in fitted SLIDE model), each element is a percentage variance explained in the total concatenated dataset by that component

var_vew

A d x r matrix, each element is a percentage variance explained in the respective view by that component.

Examples

1
2
3
4
5
6
n = 25
# Two matched datasets
p1 = p2 = 10
data = generateModel1(n = n, pvec = c(p1, p2))
out_slide = slide(X = data$X, pvec = c(p1, p2))
var_explained(out_slide, pvec = c(p1, p2))

irinagain/SLIDE documentation built on Aug. 14, 2021, 2:56 p.m.