ez_differential_table: Easily Table Differential Results

Description Usage Arguments Details Value Examples

View source: R/ez_tables.R

Description

This takes output from one of the ReputationModelR model functions (e.g., rep_analyses_auto) and returns a tibble of differential (correlational) parameters. It works with any combination of P1-, P2-, and 3rd person Meta-perceptions.

Usage

1
ez_differential_table(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 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.

Details

The function can handle up to n exchangeable triads.

Value

The function returns an object 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
32
33
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_differential_table(agree_rep_consensus, what = "main")

          ez_differential_table(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_differential_table(agree_rep_con_acc, what = "main")

          ez_differential_table(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_differential_table(agree_rep_all, what = "main")

          ez_differential_table(agree_rep_all, what = "all")

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