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

Description Usage Arguments Value Examples

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)


Search within the cocoreg package
Search all R packages, documentation and source code

Questions? Problems? Suggestions? or email at ian@mutexlabs.com.

Please suggest features or report bugs with the GitHub issue tracker.

All documentation is copyright its authors; we didn't write any of that.