Learn R Programming

cocoreg (version 0.1.1)

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

Description

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

Usage

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

Run this code
## Not run: ------------------------------------
# ccr <- cocoreg(data_collection)
# R2mat <- mappings_R2_matrix(ccr$mappings, length(ccr$data))
## ---------------------------------------------

Run the code above in your browser using DataLab