Learn R Programming

CJIVE

Joint and Individual Variation Explained via Canonical Correlation (or CJIVE) searches for directions of joint variance within two data sets. CJIVE analysis allows extraction of "joint subject scores", which act as a summary of the joint information found across data blocks, and "joint variable loadings", which exhibit the strength with which a variable contributes to the joint variability. CJIVE also allows for extraction of individual scores/loadings. These quantities are based on directions of variance that are unique (not shared) to a dataset.

The file "CheckAJIVE_v_CJIVE_Simulations" provides an example of how to implement CJIVE and compares it to AJIVE, which is closely related to CJIVE. Both analyses use "toy data." The toy data are constrcuted in a manner similar to the simulations in our CJIVE manuscript: Interperative JIVE: Connections with CCA and an Application to Brain Connectivity (10.3389/fnins.2022.969510). The manuscript has been accepted for publication in Frontiers in Neuroscience - Brain Imaging Methods.

Copy Link

Version

Install

install.packages('CJIVE')

Monthly Downloads

192

Version

0.1.0

License

MIT + file LICENSE

Maintainer

Raphiel Murden

Last Published

January 20th, 2023

Functions in CJIVE (0.1.0)

create.graph.long

Function for plotting networks with ggplot
scale_loadings

Scale and sign-correct variable loadings to assist interpretation
gg.corr.plot

Function for plotting Pearson correlations between predicted and true subject scores within the simulation study described in CJIVE manuscript
gg.load.norm.plot

Function for plotting chordal norms between estimated and true variable loading subspaces within the simulation study described in CJIVE manuscript
show.image.2

Display a heatmap of a matrix (adapted from Erick Lock's show.image function in the r.jive package)
gg.rank.plot

Function for plotting selected joint ranks
vec2net.u

Convert vector to network
perm.jntrank

Permutation Test for Joint Rank in CJIVE
gg.score.norm.plot

Function for plotting chordal norms between estimated and true subject score subspaces within the simulation study described in CJIVE manuscript
vec2net.l

Convert vector to network
gg.norm.plot

Function for plotting chordal norms between estimated and true subspaces within the simulation study described in CJIVE manuscript
sjive

Simple JIVE
cc.jive.pred

CJIVE joint subject score prediction
chord.norm.diff

Chordal norm between column-subspaces of two matrices
MatVar2

Alternative calculation - Matrix variation (i.e. Frobenius norm)
MatVar

Matrix variation (i.e. Frobenius norm)
ConvSims_gg

Convert simulation study results
AdjSigVarExp

Adjust Signal Variation Explained
Melt.Sim.Cors

Converts correlations of predicted to true joint subject scores to a format conducive to ggplot2
cc.jive

Canonical (Correlation) JIVE
GenerateToyData

Generate 'Toy' Data
GetSimResults_Dir

Retrieve simulation results