rr_agg: Round-robin single subject aggregate correlation distance...

View source: R/rr_agg.R

rr_aggR Documentation

Round-robin single subject aggregate correlation distance calculator

Description

Calculates the correlation distance between subject variables and target variables after aggregated across raters. Self-to-self ratings are not included in the aggregated calculations. This function works on a single subject basis, which is sometimes useful. It is also called in rr_agg_all() for use over the whole data frame.

Usage

rr_agg(self, tar, groups, cor_meth = "spearman")

Arguments

self

The 'subject' column from the rr_selfonly data frame from rr_df_maker.

tar

The 'target' column from the rr_noself_noNA data frame from rr_df_maker.

cor_meth

Correlation method from cor() used in calculation. Default = 'spearman'.

group

The 'group' column from the rr_noself_noNA data frame from rr_df_maker.

Note

This function relies on the output from rr_df_maker().

Author(s)

Robert S. Chavez

Examples

rr_agg(1,1,1) # self-congruent
rr_agg(1,2,1) # self-incongruent

chavezlab/csnl documentation built on June 12, 2022, 10:09 a.m.