ez_elevation_table: Easily Table Elevation Results

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 two tibbles corresponding to elevation (mean-differences) estimates and the relevant pooled Means and SDs respectively. The elevation table contains the raw difference, 95 z scores, p values, and a cohen's d (difference / pooled SD). It has only 1 parameter.

Usage

1
ez_elevation_table(rep_model)

Arguments

rep_model

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

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
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_elevation_table(agree_rep_consensus)

       # 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_elevation_table(agree_rep_con_acc)

      # 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_elevation_table(agree_rep_all)

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