mappings_R2_matrix: Extract R2 values from a list of mappings using summary()

Description Usage Arguments Value Examples

View source: R/cocoreg.R

Description

Extract R2 values from a list of mappings using summary()

Usage

1
mappings_R2_matrix(mappings, n_datasets, aggfun = mean)

Arguments

mappings

[M*M-M] list, Exhaustive list of mappings between the M datasets

n_datasets

integer, Number of datasets i.e. M

aggfun

function, A function to apply when aggregating R2 values over variables in a multivariate dataset

Value

A [M,M] matrix of R2 values stored such that the R2 value for mapping a->b is read from row a and column b.

Examples

1
2
3
4
5
## Not run: 
ccr <- cocoreg(data_collection)
R2mat <- mappings_R2_matrix(ccr$mappings, length(ccr$data))

## End(Not run)

cocoreg documentation built on May 2, 2019, 6:48 a.m.