ez_id_mod_table: Easily Table Individual Difference Moderator Results

Description Usage Arguments Value Examples

View source: R/ez_tables.R

Description

This takes output from one of the individual-level moderated reputation models (e.g., rep_auto_id_mods) and returns a tibble of model (regression) parameters. It works with any of the Individual-level moderated models.

Usage

1
ez_id_mod_table(rep_model)

Arguments

rep_model

The results from one of the ReputationModelR individual-level moderator Models (e.g., rep_auto_id_mods).

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
data("rep_sim_data")
moderator_data <- rep_sim_data %>%
dplyr::mutate(B_C_agreeableness_cent = scale(B_C_agreeableness, scale = FALSE),
       D_A_agreeableness_cent = scale(D_A_agreeableness, scale = FALSE),
       B_iri_perspective_cent = scale(B_iri_perspective, scale = FALSE),
       D_iri_perspective_cent = scale(D_iri_perspective, scale = FALSE),
       B_ptXagree_interaction = B_C_agreeableness_cent*B_iri_perspective_cent,
       D_ptXagree_interaction = D_A_agreeableness_cent*D_iri_perspective_cent)

# Example for hearsay accuracy
agree_ha_p2ptmod_model <- rep_auto_id_mods(data = moderator_data,
                 target_self = c("C_C_agreeableness", "A_A_agreeableness"),
                 p2_reports = c("B_C_agreeableness_cent", "D_A_agreeableness_cent"),
                 id_mod_variable = c("B_iri_perspective_cent", "D_iri_perspective_cent"),
                 interaction_term = c("B_ptXagree_interaction", "D_ptXagree_interaction"))
 ez_id_mod_table(agree_ha_p2ptmod_model)

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