ez_tables: Easy Differential & Elevation Tables

Description Usage Arguments Value Examples

View source: R/ez_tables.R

Description

This takes output from one of the reputational analysis models (e.g., rep_analyses_auto) and returns a list of length three. The first element of the list is a a tibble of differential (correlational) parameters. The second element is a table of elevation results. The third element is a tibble containing the table of descriptives (means and SDs, pooling across exchangeable roles).

Usage

1
ez_tables(rep_model, what = "main")

Arguments

rep_model

The results from one of the ReputationModelR Models (e.g., rep_analyses_auto).

what

The parameters you want in the differential table. Current options are main and all. If what = "main", then just the 'main' model parameters are provided. This will include, when avaiable, hearsay consensus, hearsay accuracy, direct accuracy (P1-P1 agreement), P1 Meta-Accuracy, and P2 Meta-Accuracy.

Value

The function returns a list of 2 objects of class tbl_df.

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
data("rep_sim_data")

       # Consensus only Model
          agree_rep_consensus <- rep_analyses_auto(data = rep_sim_data,
                        p1_reports = c("A_C_agreeableness", "C_A_agreeableness"),
                        p2_reports = c("B_C_agreeableness", "D_A_agreeableness"))

          ez_tables(agree_rep_consensus, what = "main")
          ez_tables(agree_rep_consensus, what = "all")

       # Consensus & Accuracy

          agree_rep_con_acc <- rep_analyses_auto(data = rep_sim_data,
                       p1_reports = c("A_C_agreeableness", "C_A_agreeableness"),
                       p2_reports = c("B_C_agreeableness", "D_A_agreeableness"),
                       target_self = c("C_C_agreeableness", "A_A_agreeableness"))

          ez_tables(agree_rep_con_acc, what = "main")
          ez_tables(agree_rep_con_acc, what = "all")

      # Consensus, Accuracy, 3rd  Person Meta

         agree_rep_all <- rep_analyses_auto(data = rep_sim_data,
                       p1_reports = c("A_C_agreeableness", "C_A_agreeableness"),
                       p2_reports = c("B_C_agreeableness", "D_A_agreeableness"),
                       target_self = c("C_C_agreeableness", "A_A_agreeableness"),
                       p1_meta = c("A_B_C_agree_meta", "C_D_A_agree_meta"),
                       p2_meta = c("B_A_C_agree_meta", "D_C_A_agree_meta"))

         ez_tables(agree_rep_all, what = "main")
         ez_tables(agree_rep_all, what = "all")

Coryc3133/ReputationAnalyses documentation built on July 31, 2019, 8:35 a.m.