Extract Shared Variation in Collections of Data Sets Using Regression Models

The algorithm extracts shared variation from a collection of data sets using regression models.

cocoreg is an R-package for extracting shared variation in collections of datasets using regression models.

A minimal usage example:

dc <- create_syn_data_toy()
ccr <- cocoreg(dc$data)
shared.by.all.df <- variation_shared_by(dc, 'all') #only on synthetic datasets
ggplot_dclst(list(observed = dc$data, shared = shared.by.all.df, cocoreg = ccr$data))

library(reshape) #importing from namespace does not work as expected
ggcompare_dclst(list(shared = shared.by.all.df, cocoreg = ccr$data))

The most important functions in cocoreg are:

  • cocoreg() which extracts shared variation from a collection of datasets

  • Functions to visualize output such as ggplot_dclst() and ggcompare_dclst() for lists of data collections, ggplot_dflst() for lists of data.frames (i.e. one data collection) and ggplot_df() for a single data.frame (a dataset)

Install the release version from CRAN:


Or the development version from GitHub:

# library(devtools)


Reference manual

It appears you don't have a PDF plugin for this browser. You can click here to download the reference manual.


0.1.1 by Jussi Korpela, 2 months ago

Browse source code at https://github.com/cran/cocoreg

Authors: Jussi Korpela [aut, cre], Andreas Henelius [aut], Finnish Institute of Occupational Health [cph]

Documentation:   PDF Manual  

MIT + file LICENSE license

Imports ggplot2, gridExtra, CCAGFA, RGCCA, combinat, abind, MASS, glmnet, pls, e1071, multiway, reshape

Suggests knitr, rmarkdown

See at CRAN