Learn R Programming

cocoreg (version 0.1.1)

cocoreg_by_path: Compute D_joint for dataset i separately for all paths

Description

Compute D_joint for dataset i separately for all paths Can be used to study path variability

Usage

cocoreg_by_path(data_orig, ccr, ds_ind)

Arguments

data_orig
list of data.frames, Original data collection
ccr
list, output of cocoreg(data_orig)
ds_ind
integer, index of the dataset to process

Value

A list of data.frames, D_joint corresponding to each path that ends at 'ds_ind' i.e. paths defined by ccr$paths[,ds_ind]. Dimensions of the matrices are the same as for the data.frames in data_orig.

Examples

Run this code
## Not run: ------------------------------------
# ccr <- cocoreg(data_list)
# jibp <- cocoreg_by_path(ccr, 1)
## ---------------------------------------------

Run the code above in your browser using DataLab