rr_agg | R Documentation |
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.
rr_agg(self, tar, groups, cor_meth = "spearman")
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. |
This function relies on the output from rr_df_maker().
Robert S. Chavez
rr_agg(1,1,1) # self-congruent rr_agg(1,2,1) # self-incongruent
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.