Paquetes
# Packages ----------------------------------------------------------------
library(easypackages)
#install.packages(c("boot","ggm","ggplot2","polycor","Hmisc","dplyr",
#"readxl","devtools","tidyverse","lubridate",
#"ggridges","wesanderson","RColorBrewer","knitr",
#"kableExtra","hrbrthemes","statsr","stargazer","psych",
#"corrplot","corrr","GGally","ggcorrplot","PerformanceAnalytics",
#"pander","broom","purrr","kableExtra","egg", "vtable",
#"qwraps2","readxl","forestmangr","janitor","gtools","ltm"))
libraries("boot","ggm","ggplot2","polycor","Hmisc","dplyr",
"readxl","devtools","tidyverse","lubridate",
"ggridges","wesanderson","RColorBrewer","knitr",
"kableExtra","hrbrthemes","statsr","stargazer","psych",
"corrplot","corrr","GGally","ggcorrplot","PerformanceAnalytics",
"pander","broom","purrr","kableExtra","egg", "vtable",
"qwraps2","readxl","forestmangr","janitor","gtools","ltm","janitor",
"flextable","webshot")
setwd("~/Camila/Justice/Justice")
library(survival)
library(remotes)
library(jtools)
library(huxtable)
library(ggstance)
library(broom.mixed)
library(webshot2)
library(broom)
library(gt)
library(gtsummary)
library(gtable)
library(gtools)
library(gt)
library(survival)
library(flextable)
library(webshot)
library(kableExtra)
library(magick)
library(glue)
library(webshot)
library(gginference)
library(MASS)
library(statsr)
library(modelsummary)
library(JSmediation)
#To avoid conflict between dplyr and mass package:
select <- dplyr::select
mutate <- dplyr::mutate
filter <- dplyr::filter
group_by <- dplyr::group_by
Directories
# Directories -------------------------------------------------------------
dir.create("Correlation_Matrices_html")
dir.create("Summary_Tables")
dir.create("Correlation_Plots")
dir.create("Regression_Tables")
dir.create("Regression_Tables/tbl_package")
dir.create("Regression_Tables/tbl_package/sub_scales")
dir.create("Regression_Tables/stargazer")
dir.create("Regression_Tables/stargazer/sub_scales")
dir.create("Regression_Tables/effectplots")
dir.create("Graficas_Definitivas")
dir.create("Bases_CSV")
dir.create("Cronbach_alpha")
dir.create("T_tests")
Cleaning Data set
# Cleaning data set -------------------------------------------------------
Datos_Justice <- read_excel("Justice and society(1-393).xlsx")
#Erase all empty columns
Datos_Justice<- rm_empty_col(Datos_Justice)
View(Datos_Justice)
#Clean names function from Janitor package
Datos_Justice <- clean_names(Datos_Justice)
#RENAME (for long names)
Datos_Justice_Renamed <-Datos_Justice %>%
rename(perception_justice=dear_participant_we_want_to_understand_the_impact_of_the_perception_of_justice_on_how_people_feel_about_society_you_will_be_asked_a_series_of_questions_on_a_form_you_just_have_to_check_the_box,
prolific_id=please_insert_your_unique_prolific_id,
age=how_old_are_you,
gender=what_gender_do_you_identify_yourself_with,
describe_yourself=how_would_you_describe_yourself_respondents_can_choose_multiple_options,
highest_degree_finished =what_is_the_highest_degree_or_level_of_school_you_have_completed_if_you_re_currently_enrolled_in_school_please_indicate_the_highest_degree_you_have_finished,
political_orientation=what_is_your_political_orientation,
fairness_with_which_issues_and_decisions_that_come_up_in_us_society_are_handled=how_would_you_rate_the_overall_fairness_with_which_issues_and_decisions_that_come_up_in_us_society_are_handled)
unique(Datos_Justice$comic_books)
## [1] "About once a month" "A few times a year" "Several times a week"
## [4] "Never or almost never" "Several times a month" "Daily"
Recoding
# Recoding ----------------------------------------------------------------
Datos_Justice_Renamed_Filtered <-Datos_Justice_Renamed %>%
select(#Quality of Decision-Making Procedures (FORMAl/16)
the_rules_dictate_that_decisions_should_be_fair_and_unbiased,
the_rules_and_procedures_are_applied_consistently_across_people_and_situations,
the_rules_ensure_that_decisions_are_made_based_on_facts_not_personal_biases_and_opinions,
the_rules_and_procedures_in_the_us_society_are_equally_fair_to_everyone,
#Quality of Decision-Making Procedures (Informal/16)
decisions_are_consistent_across_people_and_situations,
decisions_are_made_based_on_facts_not_their_personal_biases_and_opinions,
decisions_are_equally_fair_to_everyone,
#Quality of Treatment (17)
the_rules_lead_to_fair_treatment_when_decisions_are_being_made,
the_rules_lead_to_fair_treatment_when_decisions_are_being_implemented,
the_rules_require_that_i_get_an_honest_explanation_for_how_decisions_are_made,
my_views_are_considered_when_rules_are_being_applied,
the_rules_ensure_that_my_needs_will_be_taken_into_account,
the_rules_respect_my_rights_as_a_citizen,
the_rules_respect_my_rights_as_a_person,
# (Identification/ 23)
#Group connexion
when_i_talk_about_the_us_society_i_usually_say_we_rather_than_they,
i_have_a_sense_that_i_personally_belong_in_the_us_society,
i_feel_like_an_important_part_of_the_us_society,
i_feel_connected_to_the_people_around_me,
i_am_close_to_other_people_within_the_us_society_regardless_of_the_community_to_which_they_belong,
others_leave_me_out_of_the_group,
#Pride(23)
i_feel_proud_to_be_a_part_of_the_us_society,
my_community_group_is_highly_respected_within_the_us_society_community_group_american_indian_or_alaska_native_asian_black_or_african_american_latinx_native_hawaiian_or_other_pacific_islander_w,
# Respect (24)
value_you_as_a_member_and_respect_your_ideas,
value_what_you_contribute_to_society_respect_the_work_you_do,
appreciate_your_unique_contributions,
#DEPENDENT Variable (Conspiracy belief/ 26)
the_government_is_involved_in_the_murder_of_innocent_citizens_and_or_well_known_public_figures_and_keeps_this_a_secret_the_power_held_by_heads_of_state_is_second_to_that_of_small_unknown_groups,
secret_organizations_communicate_with_extraterrestrials_but_keep_this_fact_from_the_public,
the_spread_of_certain_viruses_and_or_diseases_is_the_result_of_the_deliberate_concealed_efforts_of_some_organization_groups_of_scientists_manipulate_fabricate_or_suppress_evidence_in_order_to_d,
the_government_permits_or_perpetrates_acts_of_terrorism_on_its_own_soil_disguising_its_involvement,
a_small_secret_group_of_people_is_responsible_for_making_all_major_world_decisions_such_as_going_to_war,
evidence_of_alien_contact_is_being_concealed_from_the_public,
technology_with_mind_control_capacities_is_used_on_people_without_their_knowledge,
new_and_advanced_technology_which_would_harm_current_industry_is_being_suppressed,
the_government_uses_people_as_patsies_to_hide_its_involvement_in_criminal_activity,
certain_significant_events_have_been_the_result_of_the_activity_of_a_small_group_who_secretly_manipulate_world_events,
some_ufo_sightings_and_rumors_are_planned_or_staged_in_order_to_distract_the_public_from_real_alien_contact,
experiments_involving_new_drugs_or_technologies_are_routinely_carried_out_on_the_public_without_their_knowledge_or_consent_a_lot_of_important_information_is_deliberately_concealed_from_the_public,
#(Socio-economic level/9)
what_socio_economic_level_do_you_identify_with,
#(Education)
highest_degree_finished,
#(Literacy level item / 7)
i_only_read_if_i_have_to,
reading_is_one_of_my_favorite_pastimes,
i_find_it_hard_to_finish_a_book,
for_me_reading_for_pleasure_is_a_waste_of_time,
i_really_enjoy_going_to_a_bookstore_or_a_library,
as_soon_as_i_finish_a_book_i_already_think_about_the_one_im_going_to_start_next,
#Group (minority/majority / 5)
describe_yourself,
#(Political orientation /10)
political_orientation,
#Gender
gender,
#Age
age)
#Age as numeric
Datos_Justice_Renamed_Filtered$age <-as.numeric(Datos_Justice_Renamed_Filtered$age)
#Factor variables
Datos_Justice_Renamed_Filtered$what_socio_economic_level_do_you_identify_with <- as.factor(Datos_Justice_Renamed_Filtered$what_socio_economic_level_do_you_identify_with)
Datos_Justice_Renamed_Filtered$highest_degree_finished <- as.factor(Datos_Justice_Renamed_Filtered$highest_degree_finished)
Datos_Justice_Renamed_Filtered$describe_yourself <- as.factor(Datos_Justice_Renamed_Filtered$describe_yourself)
Datos_Justice_Renamed_Filtered$gender <- as.factor(Datos_Justice_Renamed_Filtered$gender)
#the_rules_dictate_that_decisions_should_be_fair_and_unbiased
#1= Strongly disagree, 2= Disagree, 3= Slightly disagree, 4= Slightly agree , 5= Agree, 6= Strongly agree
justice_recoded <- Datos_Justice_Renamed_Filtered %>%
mutate(the_rules_dictate_that_decisions_should_be_fair_and_unbiased=
recode(the_rules_dictate_that_decisions_should_be_fair_and_unbiased,
"strongly disagree" = 1,
"Disagree"=2,
"Slightly Disagree"=3,
"Slightly Agree"=4,
"Agree" =5,
"strongly agree."=6))
unique(Datos_Justice_Renamed_Filtered$the_rules_dictate_that_decisions_should_be_fair_and_unbiased)
## [1] "Agree" "Slightly Agree" "strongly agree."
## [4] "Slightly Disagree" "Disagree" "strongly disagree"
sum(is.na(Datos_Justice_Renamed_Filtered$the_rules_dictate_that_decisions_should_be_fair_and_unbiased))
## [1] 0
sum(is.na(justice_recoded$the_rules_dictate_that_decisions_should_be_fair_and_unbiased))
## [1] 0
unique(justice_recoded$the_rules_dictate_that_decisions_should_be_fair_and_unbiased)
## [1] 5 4 6 3 2 1
#the_rules_and_procedures_are_applied_consistently_across_people_and_situations,
#1= Strongly disagree, 2= Disagree, 3= Slightly disagree, 4= Slightly agree , 5= Agree, 6= Strongly agree
justice_recoded <- justice_recoded %>%
mutate(the_rules_and_procedures_are_applied_consistently_across_people_and_situations=
recode(the_rules_and_procedures_are_applied_consistently_across_people_and_situations,
"strongly disagree" = 1,
"Disagree"=2,
"Slightly Disagree"=3,
"Slightly Agree"=4,
"Agree" =5,
"strongly agree."=6))
unique(Datos_Justice_Renamed_Filtered$the_rules_and_procedures_are_applied_consistently_across_people_and_situations)
## [1] "Disagree" "Slightly Disagree" "Agree"
## [4] "strongly agree." "Slightly Agree" "strongly disagree"
sum(is.na(Datos_Justice_Renamed_Filtered$the_rules_and_procedures_are_applied_consistently_across_people_and_situations))
## [1] 0
unique(justice_recoded$the_rules_and_procedures_are_applied_consistently_across_people_and_situations)
## [1] 2 3 5 6 4 1
sum(is.na(justice_recoded$the_rules_and_procedures_are_applied_consistently_across_people_and_situations))
## [1] 0
#the_rules_ensure_that_decisions_are_made_based_on_facts_not_personal_biases_and_opinions
#1= Strongly disagree, 2= Disagree, 3= Slightly disagree, 4= Slightly agree , 5= Agree, 6= Strongly agree
justice_recoded <- justice_recoded %>%
mutate(the_rules_ensure_that_decisions_are_made_based_on_facts_not_personal_biases_and_opinions=
recode(the_rules_ensure_that_decisions_are_made_based_on_facts_not_personal_biases_and_opinions,
"strongly disagree" = 1,
"Disagree"=2,
"Slightly Disagree"=3,
"Slightly Agree"=4,
"Agree" =5,
"strongly agree."=6))
unique(Datos_Justice_Renamed_Filtered$the_rules_ensure_that_decisions_are_made_based_on_facts_not_personal_biases_and_opinions)
## [1] "strongly disagree" "Slightly Agree" "Slightly Disagree"
## [4] "Agree" "strongly agree." "Disagree"
sum(is.na(Datos_Justice_Renamed_Filtered$the_rules_ensure_that_decisions_are_made_based_on_facts_not_personal_biases_and_opinions))
## [1] 0
unique(justice_recoded$the_rules_ensure_that_decisions_are_made_based_on_facts_not_personal_biases_and_opinions)
## [1] 1 4 3 5 6 2
sum(is.na(justice_recoded$the_rules_ensure_that_decisions_are_made_based_on_facts_not_personal_biases_and_opinions))
## [1] 0
#the_rules_and_procedures_in_the_us_society_are_equally_fair_to_everyone
#1= Strongly disagree, 2= Disagree, 3= Slightly disagree, 4= Slightly agree , 5= Agree, 6= Strongly agree
justice_recoded <- justice_recoded %>%
mutate(the_rules_and_procedures_in_the_us_society_are_equally_fair_to_everyone=
recode(the_rules_and_procedures_in_the_us_society_are_equally_fair_to_everyone,
"strongly disagree" = 1,
"Disagree"=2,
"Slightly Disagree"=3,
"Slightly Agree"=4,
"Agree" =5,
"strongly agree."=6))
unique(Datos_Justice_Renamed_Filtered$the_rules_and_procedures_in_the_us_society_are_equally_fair_to_everyone)
## [1] "Disagree" "Slightly Disagree" "strongly disagree"
## [4] "Slightly Agree" "strongly agree." "Agree"
sum(is.na(Datos_Justice_Renamed_Filtered$the_rules_and_procedures_in_the_us_society_are_equally_fair_to_everyone))
## [1] 0
unique(justice_recoded$the_rules_and_procedures_in_the_us_society_are_equally_fair_to_everyone)
## [1] 2 3 1 4 6 5
sum(is.na(justice_recoded$the_rules_and_procedures_in_the_us_society_are_equally_fair_to_everyone))
## [1] 0
#decisions_are_consistent_across_people_and_situations
#1= Strongly disagree, 2= Disagree, 3= Slightly disagree, 4= Slightly agree , 5= Agree, 6= Strongly agree
justice_recoded <- justice_recoded %>%
mutate(decisions_are_consistent_across_people_and_situations=
recode(decisions_are_consistent_across_people_and_situations,
"strongly disagree" = 1,
"Disagree"=2,
"Slightly Disagree"=3,
"Slightly Agree"=4,
"Agree" =5,
"strongly agree."=6))
unique(Datos_Justice_Renamed_Filtered$decisions_are_consistent_across_people_and_situations)
## [1] "Slightly Disagree" "strongly disagree" "Disagree"
## [4] "Slightly Agree" "strongly agree." "Agree"
sum(is.na(Datos_Justice_Renamed_Filtered$decisions_are_consistent_across_people_and_situations))
## [1] 0
unique(justice_recoded$decisions_are_consistent_across_people_and_situations)
## [1] 3 1 2 4 6 5
sum(is.na(justice_recoded$decisions_are_consistent_across_people_and_situations))
## [1] 0
#decisions_are_made_based_on_facts_not_their_personal_biases_and_opinions
#1= Strongly disagree, 2= Disagree, 3= Slightly disagree, 4= Slightly agree , 5= Agree, 6= Strongly agree
justice_recoded <- justice_recoded %>%
mutate(decisions_are_made_based_on_facts_not_their_personal_biases_and_opinions=
recode(decisions_are_made_based_on_facts_not_their_personal_biases_and_opinions,
"strongly disagree" = 1,
"Disagree"=2,
"Slightly Disagree"=3,
"Slightly Agree"=4,
"Agree" =5,
"strongly agree."=6))
unique(Datos_Justice_Renamed_Filtered$decisions_are_made_based_on_facts_not_their_personal_biases_and_opinions)
## [1] "strongly disagree" "Slightly Disagree" "Agree"
## [4] "Disagree" "strongly agree." "Slightly Agree"
sum(is.na(Datos_Justice_Renamed_Filtered$decisions_are_made_based_on_facts_not_their_personal_biases_and_opinions))
## [1] 0
unique(justice_recoded$decisions_are_made_based_on_facts_not_their_personal_biases_and_opinions)
## [1] 1 3 5 2 6 4
sum(is.na(justice_recoded$decisions_are_made_based_on_facts_not_their_personal_biases_and_opinions))
## [1] 0
#decisions_are_equally_fair_to_everyone
#1= Strongly disagree, 2= Disagree, 3= Slightly disagree, 4= Slightly agree , 5= Agree, 6= Strongly agree
justice_recoded <- justice_recoded %>%
mutate(decisions_are_equally_fair_to_everyone=
recode(decisions_are_equally_fair_to_everyone,
"strongly disagree" = 1,
"Disagree"=2,
"Slightly Disagree"=3,
"Slightly Agree"=4,
"Agree" =5,
"strongly agree."=6))
unique(Datos_Justice_Renamed_Filtered$decisions_are_equally_fair_to_everyone)
## [1] "Slightly Agree" "Slightly Disagree" "Disagree"
## [4] "Agree" "strongly disagree" "strongly agree."
sum(is.na(Datos_Justice_Renamed_Filtered$decisions_are_equally_fair_to_everyone))
## [1] 0
unique(justice_recoded$decisions_are_equally_fair_to_everyone)
## [1] 4 3 2 5 1 6
sum(is.na(justice_recoded$decisions_are_equally_fair_to_everyone))
## [1] 0
#decisions_are_equally_fair_to_everyone
#1= Strongly disagree, 2= Disagree, 3= Slightly disagree, 4= Slightly agree , 5= Agree, 6= Strongly agree
justice_recoded <- justice_recoded %>%
mutate(decisions_are_equally_fair_to_everyone=
recode(decisions_are_equally_fair_to_everyone,
"strongly disagree" = 1,
"Disagree"=2,
"Slightly Disagree"=3,
"Slightly Agree"=4,
"Agree" =5,
"strongly agree."=6))
unique(Datos_Justice_Renamed_Filtered$decisions_are_equally_fair_to_everyone)
## [1] "Slightly Agree" "Slightly Disagree" "Disagree"
## [4] "Agree" "strongly disagree" "strongly agree."
sum(is.na(Datos_Justice_Renamed_Filtered$decisions_are_equally_fair_to_everyone))
## [1] 0
unique(justice_recoded$decisions_are_equally_fair_to_everyone)
## [1] 4 3 2 5 1 6
sum(is.na(justice_recoded$decisions_are_equally_fair_to_everyone))
## [1] 0
#the_rules_lead_to_fair_treatment_when_decisions_are_being_made
#1= Strongly disagree, 2= Disagree, 3= Slightly disagree, 4= Slightly agree , 5= Agree, 6= Strongly agree
justice_recoded <- justice_recoded %>%
mutate(the_rules_lead_to_fair_treatment_when_decisions_are_being_made=
recode(the_rules_lead_to_fair_treatment_when_decisions_are_being_made,
"strongly disagree" = 1,
"Disagree"=2,
"Slightly Disagree"=3,
"Slightly Agree"=4,
"Agree" =5,
"strongly agree"=6))
unique(Datos_Justice_Renamed_Filtered$the_rules_lead_to_fair_treatment_when_decisions_are_being_made)
## [1] "Disagree" "Slightly Agree" "Slightly Disagree"
## [4] "strongly disagree" "Agree" "strongly agree"
sum(is.na(Datos_Justice_Renamed_Filtered$the_rules_lead_to_fair_treatment_when_decisions_are_being_made))
## [1] 0
unique(justice_recoded$the_rules_lead_to_fair_treatment_when_decisions_are_being_made)
## [1] 2 4 3 1 5 6
sum(is.na(justice_recoded$the_rules_lead_to_fair_treatment_when_decisions_are_being_made))
## [1] 0
#the_rules_lead_to_fair_treatment_when_decisions_are_being_implemented
#1= Strongly disagree, 2= Disagree, 3= Slightly disagree, 4= Slightly agree , 5= Agree, 6= Strongly agree
justice_recoded <- justice_recoded %>%
mutate(the_rules_lead_to_fair_treatment_when_decisions_are_being_implemented=
recode(the_rules_lead_to_fair_treatment_when_decisions_are_being_implemented,
"strongly disagree" = 1,
"Disagree"=2,
"Slightly Disagree"=3,
"Slightly Agree"=4,
"Agree" =5,
"strongly agree"=6))
unique(Datos_Justice_Renamed_Filtered$the_rules_lead_to_fair_treatment_when_decisions_are_being_implemented)
## [1] "Disagree" "Slightly Agree" "Slightly Disagree"
## [4] "strongly disagree" "strongly agree" "Agree"
sum(is.na(Datos_Justice_Renamed_Filtered$the_rules_lead_to_fair_treatment_when_decisions_are_being_implemented))
## [1] 0
unique(justice_recoded$the_rules_lead_to_fair_treatment_when_decisions_are_being_implemented)
## [1] 2 4 3 1 6 5
sum(is.na(justice_recoded$the_rules_lead_to_fair_treatment_when_decisions_are_being_implemented))
## [1] 0
#the_rules_require_that_i_get_an_honest_explanation_for_how_decisions_are_made
#1= Strongly disagree, 2= Disagree, 3= Slightly disagree, 4= Slightly agree , 5= Agree, 6= Strongly agree
justice_recoded <- justice_recoded %>%
mutate(the_rules_require_that_i_get_an_honest_explanation_for_how_decisions_are_made=
recode(the_rules_require_that_i_get_an_honest_explanation_for_how_decisions_are_made,
"strongly disagree" = 1,
"Disagree"=2,
"Slightly Disagree"=3,
"Slightly Agree"=4,
"Agree" =5,
"strongly agree"=6))
unique(Datos_Justice_Renamed_Filtered$the_rules_require_that_i_get_an_honest_explanation_for_how_decisions_are_made)
## [1] "Slightly Agree" "Disagree" "Slightly Disagree"
## [4] "Agree" "strongly agree" "strongly disagree"
sum(is.na(Datos_Justice_Renamed_Filtered$the_rules_require_that_i_get_an_honest_explanation_for_how_decisions_are_made))
## [1] 0
unique(justice_recoded$the_rules_require_that_i_get_an_honest_explanation_for_how_decisions_are_made)
## [1] 4 2 3 5 6 1
sum(is.na(justice_recoded$the_rules_require_that_i_get_an_honest_explanation_for_how_decisions_are_made))
## [1] 0
#the_rules_require_that_i_get_an_honest_explanation_for_how_decisions_are_made
#1= Strongly disagree, 2= Disagree, 3= Slightly disagree, 4= Slightly agree , 5= Agree, 6= Strongly agree
justice_recoded <- justice_recoded %>%
mutate(the_rules_require_that_i_get_an_honest_explanation_for_how_decisions_are_made=
recode(the_rules_require_that_i_get_an_honest_explanation_for_how_decisions_are_made,
"strongly disagree" = 1,
"Disagree"=2,
"Slightly Disagree"=3,
"Slightly Agree"=4,
"Agree" =5,
"strongly agree"=6))
unique(Datos_Justice_Renamed_Filtered$the_rules_require_that_i_get_an_honest_explanation_for_how_decisions_are_made)
## [1] "Slightly Agree" "Disagree" "Slightly Disagree"
## [4] "Agree" "strongly agree" "strongly disagree"
sum(is.na(Datos_Justice_Renamed_Filtered$the_rules_require_that_i_get_an_honest_explanation_for_how_decisions_are_made))
## [1] 0
unique(justice_recoded$the_rules_require_that_i_get_an_honest_explanation_for_how_decisions_are_made)
## [1] 4 2 3 5 6 1
sum(is.na(justice_recoded$the_rules_require_that_i_get_an_honest_explanation_for_how_decisions_are_made))
## [1] 0
#my_views_are_considered_when_rules_are_being_applied
#1= Strongly disagree, 2= Disagree, 3= Slightly disagree, 4= Slightly agree , 5= Agree, 6= Strongly agree
justice_recoded <- justice_recoded %>%
mutate(my_views_are_considered_when_rules_are_being_applied=
recode(my_views_are_considered_when_rules_are_being_applied,
"strongly disagree" = 1,
"Disagree"=2,
"Slightly Disagree"=3,
"Slightly Agree"=4,
"Agree" =5,
"strongly agree"=6))
unique(Datos_Justice_Renamed_Filtered$my_views_are_considered_when_rules_are_being_applied)
## [1] "strongly disagree" "Disagree" "Slightly Disagree"
## [4] "Slightly Agree" "Agree" "strongly agree"
sum(is.na(Datos_Justice_Renamed_Filtered$my_views_are_considered_when_rules_are_being_applied))
## [1] 0
unique(justice_recoded$my_views_are_considered_when_rules_are_being_applied)
## [1] 1 2 3 4 5 6
sum(is.na(justice_recoded$my_views_are_considered_when_rules_are_being_applied))
## [1] 0
#the_rules_ensure_that_my_needs_will_be_taken_into_account
#1= Strongly disagree, 2= Disagree, 3= Slightly disagree, 4= Slightly agree , 5= Agree, 6= Strongly agree
justice_recoded <- justice_recoded %>%
mutate(the_rules_ensure_that_my_needs_will_be_taken_into_account=
recode(the_rules_ensure_that_my_needs_will_be_taken_into_account,
"strongly disagree" = 1,
"Disagree"=2,
"Slightly Disagree"=3,
"Slightly Agree"=4,
"Agree" =5,
"strongly agree"=6))
unique(Datos_Justice_Renamed_Filtered$the_rules_ensure_that_my_needs_will_be_taken_into_account)
## [1] "strongly disagree" "Slightly Disagree" "Slightly Agree"
## [4] "Agree" "Disagree" "strongly agree"
sum(is.na(Datos_Justice_Renamed_Filtered$the_rules_ensure_that_my_needs_will_be_taken_into_account))
## [1] 0
unique(justice_recoded$the_rules_ensure_that_my_needs_will_be_taken_into_account)
## [1] 1 3 4 5 2 6
sum(is.na(justice_recoded$the_rules_ensure_that_my_needs_will_be_taken_into_account))
## [1] 0
#the_rules_respect_my_rights_as_a_citizen
#1= Strongly disagree, 2= Disagree, 3= Slightly disagree, 4= Slightly agree , 5= Agree, 6= Strongly agree
justice_recoded <- justice_recoded %>%
mutate(the_rules_respect_my_rights_as_a_citizen=
recode(the_rules_respect_my_rights_as_a_citizen,
"strongly disagree" = 1,
"Disagree"=2,
"Slightly Disagree"=3,
"Slightly Agree"=4,
"Agree" =5,
"strongly agree"=6))
unique(Datos_Justice_Renamed_Filtered$the_rules_respect_my_rights_as_a_citizen)
## [1] "Slightly Disagree" "Slightly Agree" "Disagree"
## [4] "Agree" "strongly agree" "strongly disagree"
sum(is.na(Datos_Justice_Renamed_Filtered$the_rules_respect_my_rights_as_a_citizen))
## [1] 0
unique(justice_recoded$the_rules_respect_my_rights_as_a_citizen)
## [1] 3 4 2 5 6 1
sum(is.na(justice_recoded$the_rules_respect_my_rights_as_a_citizen))
## [1] 0
#the_rules_respect_my_rights_as_a_person
#1= Strongly disagree, 2= Disagree, 3= Slightly disagree, 4= Slightly agree , 5= Agree, 6= Strongly agree
justice_recoded <- justice_recoded %>%
mutate(the_rules_respect_my_rights_as_a_person=
recode(the_rules_respect_my_rights_as_a_person,
"strongly disagree" = 1,
"Disagree"=2,
"Slightly Disagree"=3,
"Slightly Agree"=4,
"Agree" =5,
"strongly agree"=6))
unique(Datos_Justice_Renamed_Filtered$the_rules_respect_my_rights_as_a_person)
## [1] "strongly disagree" "Slightly Agree" "Disagree"
## [4] "Slightly Disagree" "Agree" "strongly agree"
sum(is.na(Datos_Justice_Renamed_Filtered$the_rules_respect_my_rights_as_a_person))
## [1] 0
unique(justice_recoded$the_rules_respect_my_rights_as_a_person)
## [1] 1 4 2 3 5 6
sum(is.na(justice_recoded$the_rules_respect_my_rights_as_a_person))
## [1] 0
#when_i_talk_about_the_us_society_i_usually_say_we_rather_than_they
#1= Strongly disagree, 2= Disagree, 3= Slightly disagree, 4= Slightly agree , 5= Agree, 6= Strongly agree
justice_recoded <- justice_recoded %>%
mutate(when_i_talk_about_the_us_society_i_usually_say_we_rather_than_they=
recode(when_i_talk_about_the_us_society_i_usually_say_we_rather_than_they,
"strongly disagree" = 1,
"Disagree"=2,
"Slightly Disagree"=3,
"Slightly Agree"=4,
"Agree" =5,
"strongly agree"=6))
unique(Datos_Justice_Renamed_Filtered$when_i_talk_about_the_us_society_i_usually_say_we_rather_than_they)
## [1] "Disagree" "strongly agree" "Agree"
## [4] "Slightly Agree" "Slightly Disagree" "strongly disagree"
sum(is.na(Datos_Justice_Renamed_Filtered$when_i_talk_about_the_us_society_i_usually_say_we_rather_than_they))
## [1] 0
unique(justice_recoded$when_i_talk_about_the_us_society_i_usually_say_we_rather_than_they)
## [1] 2 6 5 4 3 1
sum(is.na(justice_recoded$when_i_talk_about_the_us_society_i_usually_say_we_rather_than_they))
## [1] 0
#i_have_a_sense_that_i_personally_belong_in_the_us_society
#1= Strongly disagree, 2= Disagree, 3= Slightly disagree, 4= Slightly agree , 5= Agree, 6= Strongly agree
justice_recoded <- justice_recoded %>%
mutate(i_have_a_sense_that_i_personally_belong_in_the_us_society=
recode(i_have_a_sense_that_i_personally_belong_in_the_us_society,
"strongly disagree" = 1,
"Disagree"=2,
"Slightly Disagree"=3,
"Slightly Agree"=4,
"Agree" =5,
"strongly agree"=6))
unique(Datos_Justice_Renamed_Filtered$i_have_a_sense_that_i_personally_belong_in_the_us_society)
## [1] "strongly disagree" "strongly agree" "Agree"
## [4] "Slightly Agree" "Slightly Disagree" "Disagree"
sum(is.na(Datos_Justice_Renamed_Filtered$i_have_a_sense_that_i_personally_belong_in_the_us_society))
## [1] 0
unique(justice_recoded$i_have_a_sense_that_i_personally_belong_in_the_us_society)
## [1] 1 6 5 4 3 2
sum(is.na(justice_recoded$i_have_a_sense_that_i_personally_belong_in_the_us_society))
## [1] 0
#i_feel_like_an_important_part_of_the_us_society
#1= Strongly disagree, 2= Disagree, 3= Slightly disagree, 4= Slightly agree , 5= Agree, 6= Strongly agree
justice_recoded <- justice_recoded %>%
mutate(i_feel_like_an_important_part_of_the_us_society=
recode(i_feel_like_an_important_part_of_the_us_society,
"strongly disagree" = 1,
"Disagree"=2,
"Slightly Disagree"=3,
"Slightly Agree"=4,
"Agree" =5,
"strongly agree"=6))
unique(Datos_Justice_Renamed_Filtered$i_feel_like_an_important_part_of_the_us_society)
## [1] "strongly disagree" "Slightly Agree" "Slightly Disagree"
## [4] "Agree" "Disagree" "strongly agree"
sum(is.na(Datos_Justice_Renamed_Filtered$i_feel_like_an_important_part_of_the_us_society))
## [1] 0
unique(justice_recoded$i_feel_like_an_important_part_of_the_us_society)
## [1] 1 4 3 5 2 6
sum(is.na(justice_recoded$i_feel_like_an_important_part_of_the_us_society))
## [1] 0
#i_feel_connected_to_the_people_around_me
#1= Strongly disagree, 2= Disagree, 3= Slightly disagree, 4= Slightly agree , 5= Agree, 6= Strongly agree
justice_recoded <- justice_recoded %>%
mutate(i_feel_connected_to_the_people_around_me=
recode(i_feel_connected_to_the_people_around_me,
"strongly disagree" = 1,
"Disagree"=2,
"Slightly Disagree"=3,
"Slightly Agree"=4,
"Agree" =5,
"strongly agree"=6))
unique(Datos_Justice_Renamed_Filtered$i_feel_connected_to_the_people_around_me)
## [1] "Slightly Disagree" "Agree" "Slightly Agree"
## [4] "strongly agree" "Disagree" "strongly disagree"
sum(is.na(Datos_Justice_Renamed_Filtered$i_feel_connected_to_the_people_around_me))
## [1] 0
unique(justice_recoded$i_feel_connected_to_the_people_around_me)
## [1] 3 5 4 6 2 1
sum(is.na(justice_recoded$i_feel_connected_to_the_people_around_me))
## [1] 0
#i_am_close_to_other_people_within_the_us_society_regardless_of_the_community_to_which_they_belong
#1= Strongly disagree, 2= Disagree, 3= Slightly disagree, 4= Slightly agree , 5= Agree, 6= Strongly agree
justice_recoded <- justice_recoded %>%
mutate(i_am_close_to_other_people_within_the_us_society_regardless_of_the_community_to_which_they_belong=
recode(i_am_close_to_other_people_within_the_us_society_regardless_of_the_community_to_which_they_belong,
"strongly disagree" = 1,
"Disagree"=2,
"Slightly Disagree"=3,
"Slightly Agree"=4,
"Agree" =5,
"strongly agree"=6))
unique(Datos_Justice_Renamed_Filtered$i_am_close_to_other_people_within_the_us_society_regardless_of_the_community_to_which_they_belong)
## [1] "Slightly Agree" "Agree" "Disagree"
## [4] "Slightly Disagree" "strongly agree" "strongly disagree"
sum(is.na(Datos_Justice_Renamed_Filtered$i_am_close_to_other_people_within_the_us_society_regardless_of_the_community_to_which_they_belong))
## [1] 0
unique(justice_recoded$i_am_close_to_other_people_within_the_us_society_regardless_of_the_community_to_which_they_belong)
## [1] 4 5 2 3 6 1
sum(is.na(justice_recoded$i_am_close_to_other_people_within_the_us_society_regardless_of_the_community_to_which_they_belong))
## [1] 0
#i_am_close_to_other_people_within_the_us_society_regardless_of_the_community_to_which_they_belong
#1= Strongly disagree, 2= Disagree, 3= Slightly disagree, 4= Slightly agree , 5= Agree, 6= Strongly agree
justice_recoded <- justice_recoded %>%
mutate(i_am_close_to_other_people_within_the_us_society_regardless_of_the_community_to_which_they_belong=
recode(i_am_close_to_other_people_within_the_us_society_regardless_of_the_community_to_which_they_belong,
"strongly disagree" = 1,
"Disagree"=2,
"Slightly Disagree"=3,
"Slightly Agree"=4,
"Agree" =5,
"strongly agree"=6))
unique(Datos_Justice_Renamed_Filtered$i_am_close_to_other_people_within_the_us_society_regardless_of_the_community_to_which_they_belong)
## [1] "Slightly Agree" "Agree" "Disagree"
## [4] "Slightly Disagree" "strongly agree" "strongly disagree"
sum(is.na(Datos_Justice_Renamed_Filtered$i_am_close_to_other_people_within_the_us_society_regardless_of_the_community_to_which_they_belong))
## [1] 0
unique(justice_recoded$i_am_close_to_other_people_within_the_us_society_regardless_of_the_community_to_which_they_belong)
## [1] 4 5 2 3 6 1
sum(is.na(justice_recoded$i_am_close_to_other_people_within_the_us_society_regardless_of_the_community_to_which_they_belong))
## [1] 0
#others_leave_me_out_of_the_group
#1= Strongly disagree, 2= Disagree, 3= Slightly disagree, 4= Slightly agree , 5= Agree, 6= Strongly agree
justice_recoded <- justice_recoded %>%
mutate(others_leave_me_out_of_the_group=
recode(others_leave_me_out_of_the_group,
"strongly disagree" = 1,
"Disagree"=2,
"Slightly Disagree"=3,
"Slightly Agree"=4,
"Agree" =5,
"strongly agree"=6))
unique(Datos_Justice_Renamed_Filtered$others_leave_me_out_of_the_group)
## [1] "Agree" "strongly disagree" "Slightly Disagree"
## [4] "Disagree" "strongly agree" "Slightly Agree"
sum(is.na(Datos_Justice_Renamed_Filtered$others_leave_me_out_of_the_group))
## [1] 0
unique(justice_recoded$others_leave_me_out_of_the_group)
## [1] 5 1 3 2 6 4
sum(is.na(justice_recoded$others_leave_me_out_of_the_group))
## [1] 0
#others_leave_me_out_of_the_group
#1= Strongly disagree, 2= Disagree, 3= Slightly disagree, 4= Slightly agree , 5= Agree, 6= Strongly agree
justice_recoded <- justice_recoded %>%
mutate(others_leave_me_out_of_the_group=
recode(others_leave_me_out_of_the_group,
"strongly disagree" = 1,
"Disagree"=2,
"Slightly Disagree"=3,
"Slightly Agree"=4,
"Agree" =5,
"strongly agree"=6))
unique(Datos_Justice_Renamed_Filtered$others_leave_me_out_of_the_group)
## [1] "Agree" "strongly disagree" "Slightly Disagree"
## [4] "Disagree" "strongly agree" "Slightly Agree"
sum(is.na(Datos_Justice_Renamed_Filtered$others_leave_me_out_of_the_group))
## [1] 0
unique(justice_recoded$others_leave_me_out_of_the_group)
## [1] 5 1 3 2 6 4
sum(is.na(justice_recoded$others_leave_me_out_of_the_group))
## [1] 0
#i_feel_proud_to_be_a_part_of_the_us_society
#1= Strongly disagree, 2= Disagree, 3= Slightly disagree, 4= Slightly agree , 5= Agree, 6= Strongly agree
justice_recoded <- justice_recoded %>%
mutate(i_feel_proud_to_be_a_part_of_the_us_society=
recode(i_feel_proud_to_be_a_part_of_the_us_society,
"strongly disagree" = 1,
"Disagree"=2,
"Slightly Disagree"=3,
"Slightly Agree"=4,
"Agree" =5,
"strongly agree"=6))
unique(Datos_Justice_Renamed_Filtered$i_feel_proud_to_be_a_part_of_the_us_society)
## [1] "strongly disagree" "Agree" "Slightly Agree"
## [4] "Slightly Disagree" "strongly agree" "Disagree"
sum(is.na(Datos_Justice_Renamed_Filtered$i_feel_proud_to_be_a_part_of_the_us_society))
## [1] 0
unique(justice_recoded$i_feel_proud_to_be_a_part_of_the_us_society)
## [1] 1 5 4 3 6 2
sum(is.na(justice_recoded$i_feel_proud_to_be_a_part_of_the_us_society))
## [1] 0
#my_community_group_is_highly_respected_within_the_us_society_community_group_american_indian_or_alaska_native_asian_black_or_african_american_latinx_native_hawaiian_or_other_pacific_islander_w
#1= Strongly disagree, 2= Disagree, 3= Slightly disagree, 4= Slightly agree , 5= Agree, 6= Strongly agree
justice_recoded <- justice_recoded %>%
mutate(my_community_group_is_highly_respected_within_the_us_society_community_group_american_indian_or_alaska_native_asian_black_or_african_american_latinx_native_hawaiian_or_other_pacific_islander_w=
recode(my_community_group_is_highly_respected_within_the_us_society_community_group_american_indian_or_alaska_native_asian_black_or_african_american_latinx_native_hawaiian_or_other_pacific_islander_w,
"strongly disagree" =1,
"Disagree"=2,
"Slightly Disagree"=3,
"Slightly Agree"=4,
"Agree" =5,
"strongly agree"=6))
unique(Datos_Justice_Renamed_Filtered$my_community_group_is_highly_respected_within_the_us_society_community_group_american_indian_or_alaska_native_asian_black_or_african_american_latinx_native_hawaiian_or_other_pacific_islander_w)
## [1] "strongly disagree" "Agree" "Disagree"
## [4] "Slightly Disagree" "Slightly Agree" "strongly agree"
sum(is.na(Datos_Justice_Renamed_Filtered$my_community_group_is_highly_respected_within_the_us_society_community_group_american_indian_or_alaska_native_asian_black_or_african_american_latinx_native_hawaiian_or_other_pacific_islander_w))
## [1] 0
unique(justice_recoded$my_community_group_is_highly_respected_within_the_us_society_community_group_american_indian_or_alaska_native_asian_black_or_african_american_latinx_native_hawaiian_or_other_pacific_islander_w)
## [1] 1 5 2 3 4 6
sum(is.na(justice_recoded$my_community_group_is_highly_respected_within_the_us_society_community_group_american_indian_or_alaska_native_asian_black_or_african_american_latinx_native_hawaiian_or_other_pacific_islander_w))
## [1] 0
#value_you_as_a_member_and_respect_your_ideas
#1= Strongly disagree, 2= Disagree, 3= Slightly disagree, 4= Slightly agree , 5= Agree, 6= Strongly agree
justice_recoded <- justice_recoded %>%
mutate(value_you_as_a_member_and_respect_your_ideas=
recode(value_you_as_a_member_and_respect_your_ideas,
"Strongly disagree" =1,
"Disagree"=2,
"Slightly Disagree"=3,
"Slightly Agree"=4,
"Agree" =5,
"strongly agree"=6))
unique(Datos_Justice_Renamed_Filtered$value_you_as_a_member_and_respect_your_ideas)
## [1] " Strongly disagree" "Slightly Agree" "Disagree"
## [4] "Slightly Disagree" "Strongly agree" "Agree"
sum(is.na(Datos_Justice_Renamed_Filtered$value_you_as_a_member_and_respect_your_ideas))
## [1] 0
unique(justice_recoded$value_you_as_a_member_and_respect_your_ideas)
## [1] NA 4 2 3 5
sum(is.na(justice_recoded$value_you_as_a_member_and_respect_your_ideas))
## [1] 56
#Truco para resolver el problema de codificación con strongly agree
justice_recoded$value_you_as_a_member_and_respect_your_ideas= justice_recoded$value_you_as_a_member_and_respect_your_ideas %>% replace(is.na(.), 1)
unique(justice_recoded$value_you_as_a_member_and_respect_your_ideas)
## [1] 1 4 2 3 5
sum(is.na(justice_recoded$value_you_as_a_member_and_respect_your_ideas))
## [1] 0
#value_what_you_contribute_to_society_respect_the_work_you_do
#1= Strongly disagree, 2= Disagree, 3= Slightly disagree, 4= Slightly agree , 5= Agree, 6= Strongly agree
justice_recoded <- justice_recoded %>%
mutate(value_what_you_contribute_to_society_respect_the_work_you_do=
recode(value_what_you_contribute_to_society_respect_the_work_you_do,
"Strongly disagree" =1,
"Disagree"=2,
"Slightly Disagree"=3,
"Slightly Agree"=4,
"Agree" =5,
"strongly agree"=6))
unique(Datos_Justice_Renamed_Filtered$value_what_you_contribute_to_society_respect_the_work_you_do)
## [1] " Strongly disagree" "Slightly Agree" "Disagree"
## [4] "Slightly Disagree" "Agree" "Strongly agree"
sum(is.na(Datos_Justice_Renamed_Filtered$value_what_you_contribute_to_society_respect_the_work_you_do))
## [1] 0
unique(justice_recoded$value_what_you_contribute_to_society_respect_the_work_you_do)
## [1] NA 4 2 3 5
sum(is.na(justice_recoded$value_what_you_contribute_to_society_respect_the_work_you_do))
## [1] 71
#Truco para resolver el problema de codificación con strongly agree
justice_recoded$value_what_you_contribute_to_society_respect_the_work_you_do= justice_recoded$value_what_you_contribute_to_society_respect_the_work_you_do %>% replace(is.na(.), 1)
unique(justice_recoded$value_what_you_contribute_to_society_respect_the_work_you_do)
## [1] 1 4 2 3 5
sum(is.na(justice_recoded$value_what_you_contribute_to_society_respect_the_work_you_do))
## [1] 0
#appreciate_your_unique_contributions
#1= Strongly disagree, 2= Disagree, 3= Slightly disagree, 4= Slightly agree , 5= Agree, 6= Strongly agree
justice_recoded <- justice_recoded %>%
mutate(appreciate_your_unique_contributions=
recode(appreciate_your_unique_contributions,
"Strongly disagree" =1,
"Disagree"=2,
"Slightly Disagree"=3,
"Slightly Agree"=4,
"Agree" =5,
"strongly agree"=6))
unique(Datos_Justice_Renamed_Filtered$appreciate_your_unique_contributions)
## [1] " Strongly disagree" "Slightly Agree" "Disagree"
## [4] "Slightly Disagree" "Strongly agree" "Agree"
sum(is.na(Datos_Justice_Renamed_Filtered$appreciate_your_unique_contributions))
## [1] 0
unique(justice_recoded$appreciate_your_unique_contributions)
## [1] NA 4 2 3 5
sum(is.na(justice_recoded$appreciate_your_unique_contributions))
## [1] 78
#Truco para resolver el problema de codificación con strongly agree
justice_recoded$appreciate_your_unique_contributions= justice_recoded$appreciate_your_unique_contributions %>% replace(is.na(.), 1)
unique(justice_recoded$appreciate_your_unique_contributions)
## [1] 1 4 2 3 5
sum(is.na(justice_recoded$appreciate_your_unique_contributions))
## [1] 0
#the_government_is_involved_in_the_murder_of_innocent_citizens_and_or_well_known_public_figures_and_keeps_this_a_secret_the_power_held_by_heads_of_state_is_second_to_that_of_small_unknown_groups
#1= Definitely not true; 2= Not true, 3= probably not true, 4= probably true, 5= true, 6= definitely true.
justice_recoded <- justice_recoded %>%
mutate(the_government_is_involved_in_the_murder_of_innocent_citizens_and_or_well_known_public_figures_and_keeps_this_a_secret_the_power_held_by_heads_of_state_is_second_to_that_of_small_unknown_groups=
recode(the_government_is_involved_in_the_murder_of_innocent_citizens_and_or_well_known_public_figures_and_keeps_this_a_secret_the_power_held_by_heads_of_state_is_second_to_that_of_small_unknown_groups,
"Definitely not true" =1,
"Not true" =2,
"Probably not true"=3,
"Probably true"=4,
"True" =5,
"Definitely true"=6))
unique(Datos_Justice_Renamed_Filtered$the_government_is_involved_in_the_murder_of_innocent_citizens_and_or_well_known_public_figures_and_keeps_this_a_secret_the_power_held_by_heads_of_state_is_second_to_that_of_small_unknown_groups)
## [1] "Probably true" "Not true" "Probably not true"
## [4] "True" "Definitely true" "Definitely not true"
sum(is.na(Datos_Justice_Renamed_Filtered$the_government_is_involved_in_the_murder_of_innocent_citizens_and_or_well_known_public_figures_and_keeps_this_a_secret_the_power_held_by_heads_of_state_is_second_to_that_of_small_unknown_groups))
## [1] 0
unique(justice_recoded$the_government_is_involved_in_the_murder_of_innocent_citizens_and_or_well_known_public_figures_and_keeps_this_a_secret_the_power_held_by_heads_of_state_is_second_to_that_of_small_unknown_groups)
## [1] 4 2 3 5 6 1
sum(is.na(justice_recoded$the_government_is_involved_in_the_murder_of_innocent_citizens_and_or_well_known_public_figures_and_keeps_this_a_secret_the_power_held_by_heads_of_state_is_second_to_that_of_small_unknown_groups))
## [1] 0
#secret_organizations_communicate_with_extraterrestrials_but_keep_this_fact_from_the_public
#1= Definitely not true; 2= Not true, 3= probably not true, 4= probably true, 5= true, 6= definitely true.
justice_recoded <- justice_recoded %>%
mutate(secret_organizations_communicate_with_extraterrestrials_but_keep_this_fact_from_the_public=
recode(secret_organizations_communicate_with_extraterrestrials_but_keep_this_fact_from_the_public,
"Definitely not true" =1,
"Not true" =2,
"Probably not true"=3,
"Probably true"=4,
"True" =5,
"Definitely true"=6))
unique(Datos_Justice_Renamed_Filtered$secret_organizations_communicate_with_extraterrestrials_but_keep_this_fact_from_the_public)
## [1] "Definitely not true" "Not true" "Probably not true"
## [4] "Probably true" "True" "Definitely true"
sum(is.na(Datos_Justice_Renamed_Filtered$secret_organizations_communicate_with_extraterrestrials_but_keep_this_fact_from_the_public))
## [1] 0
unique(justice_recoded$secret_organizations_communicate_with_extraterrestrials_but_keep_this_fact_from_the_public)
## [1] 1 2 3 4 5 6
sum(is.na(justice_recoded$secret_organizations_communicate_with_extraterrestrials_but_keep_this_fact_from_the_public))
## [1] 0
#the_spread_of_certain_viruses_and_or_diseases_is_the_result_of_the_deliberate_concealed_efforts_of_some_organization_groups_of_scientists_manipulate_fabricate_or_suppress_evidence_in_order_to_d
#1= Definitely not true; 2= Not true, 3= probably not true, 4= probably true, 5= true, 6= definitely true.
justice_recoded <- justice_recoded %>%
mutate(the_spread_of_certain_viruses_and_or_diseases_is_the_result_of_the_deliberate_concealed_efforts_of_some_organization_groups_of_scientists_manipulate_fabricate_or_suppress_evidence_in_order_to_d=
recode(the_spread_of_certain_viruses_and_or_diseases_is_the_result_of_the_deliberate_concealed_efforts_of_some_organization_groups_of_scientists_manipulate_fabricate_or_suppress_evidence_in_order_to_d,
"Definitely not true" =1,
"Not true" =2,
"Probably not true"=3,
"Probably true"=4,
"True" =5,
"Definitely true"=6))
unique(Datos_Justice_Renamed_Filtered$the_spread_of_certain_viruses_and_or_diseases_is_the_result_of_the_deliberate_concealed_efforts_of_some_organization_groups_of_scientists_manipulate_fabricate_or_suppress_evidence_in_order_to_d)
## [1] "Probably not true" "Definitely not true" "Not true"
## [4] "Probably true" "True" "Definitely true"
sum(is.na(Datos_Justice_Renamed_Filtered$the_spread_of_certain_viruses_and_or_diseases_is_the_result_of_the_deliberate_concealed_efforts_of_some_organization_groups_of_scientists_manipulate_fabricate_or_suppress_evidence_in_order_to_d))
## [1] 0
unique(justice_recoded$the_spread_of_certain_viruses_and_or_diseases_is_the_result_of_the_deliberate_concealed_efforts_of_some_organization_groups_of_scientists_manipulate_fabricate_or_suppress_evidence_in_order_to_d)
## [1] 3 1 2 4 5 6
sum(is.na(justice_recoded$the_spread_of_certain_viruses_and_or_diseases_is_the_result_of_the_deliberate_concealed_efforts_of_some_organization_groups_of_scientists_manipulate_fabricate_or_suppress_evidence_in_order_to_d))
## [1] 0
#the_government_permits_or_perpetrates_acts_of_terrorism_on_its_own_soil_disguising_its_involvement
#1= Definitely not true; 2= Not true, 3= probably not true, 4= probably true, 5= true, 6= definitely true.
justice_recoded <- justice_recoded %>%
mutate(the_government_permits_or_perpetrates_acts_of_terrorism_on_its_own_soil_disguising_its_involvement=
recode(the_government_permits_or_perpetrates_acts_of_terrorism_on_its_own_soil_disguising_its_involvement,
"Definitely not true" =1,
"Not true" =2,
"Probably not true"=3,
"Probably true"=4,
"True" =5,
"Definitely true"=6))
unique(Datos_Justice_Renamed_Filtered$the_government_permits_or_perpetrates_acts_of_terrorism_on_its_own_soil_disguising_its_involvement)
## [1] "True" "Probably not true" "Not true"
## [4] "Probably true" "Definitely not true" "Definitely true"
sum(is.na(Datos_Justice_Renamed_Filtered$the_government_permits_or_perpetrates_acts_of_terrorism_on_its_own_soil_disguising_its_involvement))
## [1] 0
unique(justice_recoded$the_government_permits_or_perpetrates_acts_of_terrorism_on_its_own_soil_disguising_its_involvement)
## [1] 5 3 2 4 1 6
sum(is.na(justice_recoded$the_government_permits_or_perpetrates_acts_of_terrorism_on_its_own_soil_disguising_its_involvement))
## [1] 0
#a_small_secret_group_of_people_is_responsible_for_making_all_major_world_decisions_such_as_going_to_war
#1= Definitely not true; 2= Not true, 3= probably not true, 4= probably true, 5= true, 6= definitely true.
justice_recoded <- justice_recoded %>%
mutate(a_small_secret_group_of_people_is_responsible_for_making_all_major_world_decisions_such_as_going_to_war=
recode(a_small_secret_group_of_people_is_responsible_for_making_all_major_world_decisions_such_as_going_to_war,
"Definitely not true" =1,
"Not true" =2,
"Probably not true"=3,
"Probably true"=4,
"True" =5,
"Definitely true"=6))
unique(Datos_Justice_Renamed_Filtered$a_small_secret_group_of_people_is_responsible_for_making_all_major_world_decisions_such_as_going_to_war)
## [1] "Probably true" "Definitely not true" "Probably not true"
## [4] "True" "Not true" "Definitely true"
sum(is.na(Datos_Justice_Renamed_Filtered$a_small_secret_group_of_people_is_responsible_for_making_all_major_world_decisions_such_as_going_to_war))
## [1] 0
unique(justice_recoded$a_small_secret_group_of_people_is_responsible_for_making_all_major_world_decisions_such_as_going_to_war)
## [1] 4 1 3 5 2 6
sum(is.na(justice_recoded$a_small_secret_group_of_people_is_responsible_for_making_all_major_world_decisions_such_as_going_to_war))
## [1] 0
#evidence_of_alien_contact_is_being_concealed_from_the_public
#1= Definitely not true; 2= Not true, 3= probably not true, 4= probably true, 5= true, 6= definitely true.
justice_recoded <- justice_recoded %>%
mutate(evidence_of_alien_contact_is_being_concealed_from_the_public=
recode(evidence_of_alien_contact_is_being_concealed_from_the_public,
"Definitely not true" =1,
"Not true" =2,
"Probably not true"=3,
"Probably true"=4,
"True" =5,
"Definitely true"=6))
unique(Datos_Justice_Renamed_Filtered$evidence_of_alien_contact_is_being_concealed_from_the_public)
## [1] "Definitely not true" "True" "Probably not true"
## [4] "Not true" "Definitely true" "Probably true"
sum(is.na(Datos_Justice_Renamed_Filtered$evidence_of_alien_contact_is_being_concealed_from_the_public))
## [1] 0
unique(justice_recoded$evidence_of_alien_contact_is_being_concealed_from_the_public)
## [1] 1 5 3 2 6 4
sum(is.na(justice_recoded$evidence_of_alien_contact_is_being_concealed_from_the_public))
## [1] 0
#technology_with_mind_control_capacities_is_used_on_people_without_their_knowledge
#1= Definitely not true; 2= Not true, 3= probably not true, 4= probably true, 5= true, 6= definitely true.
justice_recoded <- justice_recoded %>%
mutate(technology_with_mind_control_capacities_is_used_on_people_without_their_knowledge=
recode(technology_with_mind_control_capacities_is_used_on_people_without_their_knowledge,
"Definitely not true" =1,
"Not true" =2,
"Probably not true"=3,
"Probably true"=4,
"True" =5,
"Definitely true"=6))
unique(Datos_Justice_Renamed_Filtered$technology_with_mind_control_capacities_is_used_on_people_without_their_knowledge)
## [1] "Definitely true" "Probably true" "Definitely not true"
## [4] "Not true" "Probably not true" "True"
sum(is.na(Datos_Justice_Renamed_Filtered$technology_with_mind_control_capacities_is_used_on_people_without_their_knowledge))
## [1] 0
unique(justice_recoded$technology_with_mind_control_capacities_is_used_on_people_without_their_knowledge)
## [1] 6 4 1 2 3 5
sum(is.na(justice_recoded$technology_with_mind_control_capacities_is_used_on_people_without_their_knowledge))
## [1] 0
#new_and_advanced_technology_which_would_harm_current_industry_is_being_suppressed
#1= Definitely not true; 2= Not true, 3= probably not true, 4= probably true, 5= true, 6= definitely true.
justice_recoded <- justice_recoded %>%
mutate(new_and_advanced_technology_which_would_harm_current_industry_is_being_suppressed=
recode(new_and_advanced_technology_which_would_harm_current_industry_is_being_suppressed,
"Definitely not true" =1,
"Not true" =2,
"Probably not true"=3,
"Probably true"=4,
"True" =5,
"Definitely true"=6))
unique(Datos_Justice_Renamed_Filtered$new_and_advanced_technology_which_would_harm_current_industry_is_being_suppressed)
## [1] "Not true" "Probably true" "Definitely not true"
## [4] "Probably not true" "True" "Definitely true"
sum(is.na(Datos_Justice_Renamed_Filtered$new_and_advanced_technology_which_would_harm_current_industry_is_being_suppressed))
## [1] 0
unique(justice_recoded$new_and_advanced_technology_which_would_harm_current_industry_is_being_suppressed)
## [1] 2 4 1 3 5 6
sum(is.na(justice_recoded$new_and_advanced_technology_which_would_harm_current_industry_is_being_suppressed))
## [1] 0
#the_government_uses_people_as_patsies_to_hide_its_involvement_in_criminal_activity
#1= Definitely not true; 2= Not true, 3= probably not true, 4= probably true, 5= true, 6= definitely true.
justice_recoded <- justice_recoded %>%
mutate(the_government_uses_people_as_patsies_to_hide_its_involvement_in_criminal_activity=
recode(the_government_uses_people_as_patsies_to_hide_its_involvement_in_criminal_activity,
"Definitely not true" =1,
"Not true" =2,
"Probably not true"=3,
"Probably true"=4,
"True" =5,
"Definitely true"=6))
unique(Datos_Justice_Renamed_Filtered$the_government_uses_people_as_patsies_to_hide_its_involvement_in_criminal_activity)
## [1] "True" "Probably true" "Probably not true"
## [4] "Not true" "Definitely not true" "Definitely true"
sum(is.na(Datos_Justice_Renamed_Filtered$the_government_uses_people_as_patsies_to_hide_its_involvement_in_criminal_activity))
## [1] 0
unique(justice_recoded$the_government_uses_people_as_patsies_to_hide_its_involvement_in_criminal_activity)
## [1] 5 4 3 2 1 6
sum(is.na(justice_recoded$the_government_uses_people_as_patsies_to_hide_its_involvement_in_criminal_activity))
## [1] 0
#certain_significant_events_have_been_the_result_of_the_activity_of_a_small_group_who_secretly_manipulate_world_events
#1= Definitely not true; 2= Not true, 3= probably not true, 4= probably true, 5= true, 6= definitely true.
justice_recoded <- justice_recoded %>%
mutate(certain_significant_events_have_been_the_result_of_the_activity_of_a_small_group_who_secretly_manipulate_world_events=
recode(certain_significant_events_have_been_the_result_of_the_activity_of_a_small_group_who_secretly_manipulate_world_events,
"Definitely not true" =1,
"Not true" =2,
"Probably not true"=3,
"Probably true"=4,
"True" =5,
"Definitely true"=6))
unique(Datos_Justice_Renamed_Filtered$certain_significant_events_have_been_the_result_of_the_activity_of_a_small_group_who_secretly_manipulate_world_events)
## [1] "Probably not true" "Probably true" "Definitely not true"
## [4] "Not true" "True" "Definitely true"
sum(is.na(Datos_Justice_Renamed_Filtered$certain_significant_events_have_been_the_result_of_the_activity_of_a_small_group_who_secretly_manipulate_world_events))
## [1] 0
unique(justice_recoded$certain_significant_events_have_been_the_result_of_the_activity_of_a_small_group_who_secretly_manipulate_world_events)
## [1] 3 4 1 2 5 6
sum(is.na(justice_recoded$certain_significant_events_have_been_the_result_of_the_activity_of_a_small_group_who_secretly_manipulate_world_events))
## [1] 0
#some_ufo_sightings_and_rumors_are_planned_or_staged_in_order_to_distract_the_public_from_real_alien_contact
#1= Definitely not true; 2= Not true, 3= probably not true, 4= probably true, 5= true, 6= definitely true.
justice_recoded <- justice_recoded %>%
mutate(some_ufo_sightings_and_rumors_are_planned_or_staged_in_order_to_distract_the_public_from_real_alien_contact=
recode(some_ufo_sightings_and_rumors_are_planned_or_staged_in_order_to_distract_the_public_from_real_alien_contact,
"Definitely not true" =1,
"Not true" =2,
"Probably not true"=3,
"Probably true"=4,
"True" =5,
"Definitely true"=6))
unique(Datos_Justice_Renamed_Filtered$some_ufo_sightings_and_rumors_are_planned_or_staged_in_order_to_distract_the_public_from_real_alien_contact)
## [1] "Definitely not true" "Probably true" "Not true"
## [4] "Probably not true" "True" "Definitely true"
sum(is.na(Datos_Justice_Renamed_Filtered$some_ufo_sightings_and_rumors_are_planned_or_staged_in_order_to_distract_the_public_from_real_alien_contact))
## [1] 0
unique(justice_recoded$some_ufo_sightings_and_rumors_are_planned_or_staged_in_order_to_distract_the_public_from_real_alien_contact)
## [1] 1 4 2 3 5 6
sum(is.na(justice_recoded$some_ufo_sightings_and_rumors_are_planned_or_staged_in_order_to_distract_the_public_from_real_alien_contact))
## [1] 0
#experiments_involving_new_drugs_or_technologies_are_routinely_carried_out_on_the_public_without_their_knowledge_or_consent_a_lot_of_important_information_is_deliberately_concealed_from_the_public
#1= Definitely not true; 2= Not true, 3= probably not true, 4= probably true, 5= true, 6= definitely true.
justice_recoded <- justice_recoded %>%
mutate(experiments_involving_new_drugs_or_technologies_are_routinely_carried_out_on_the_public_without_their_knowledge_or_consent_a_lot_of_important_information_is_deliberately_concealed_from_the_public=
recode(experiments_involving_new_drugs_or_technologies_are_routinely_carried_out_on_the_public_without_their_knowledge_or_consent_a_lot_of_important_information_is_deliberately_concealed_from_the_public,
"Definitely not true" =1,
"Not true" =2,
"Probably not true"=3,
"Probably true"=4,
"True" =5,
"Definitely true"=6))
unique(Datos_Justice_Renamed_Filtered$experiments_involving_new_drugs_or_technologies_are_routinely_carried_out_on_the_public_without_their_knowledge_or_consent_a_lot_of_important_information_is_deliberately_concealed_from_the_public)
## [1] "Definitely true" "Probably true" "Definitely not true"
## [4] "Probably not true" "Not true" "True"
sum(is.na(Datos_Justice_Renamed_Filtered$experiments_involving_new_drugs_or_technologies_are_routinely_carried_out_on_the_public_without_their_knowledge_or_consent_a_lot_of_important_information_is_deliberately_concealed_from_the_public))
## [1] 0
unique(justice_recoded$experiments_involving_new_drugs_or_technologies_are_routinely_carried_out_on_the_public_without_their_knowledge_or_consent_a_lot_of_important_information_is_deliberately_concealed_from_the_public)
## [1] 6 4 1 3 2 5
sum(is.na(justice_recoded$experiments_involving_new_drugs_or_technologies_are_routinely_carried_out_on_the_public_without_their_knowledge_or_consent_a_lot_of_important_information_is_deliberately_concealed_from_the_public))
## [1] 0
#i_only_read_if_i_have_to
#(Original recoding) 1= Totally disagree, 2= Disagree, 3= Disagree somewhat, 4= Agree somewhat, 5= Agree, 6= Totally agree
#(Inverted scale)= 6= Totally disagree, 5= Disagree, 4= Disagree somewhat, 3= Agree somewhat, 2= Agree, 1= Totally agree
justice_recoded <- justice_recoded %>%
mutate(i_only_read_if_i_have_to=
recode(i_only_read_if_i_have_to,
"Totally disagree" =6,
"Disagree" =5,
"Disagree somewhat"=4,
"agree somewhat"=3,
"agree" =2,
"Totally agree"=1))
unique(Datos_Justice_Renamed_Filtered$i_only_read_if_i_have_to)
## [1] "Totally disagree" "agree somewhat" "Disagree somewhat"
## [4] "Disagree" "agree" "Totally agree"
sum(is.na(Datos_Justice_Renamed_Filtered$i_only_read_if_i_have_to))
## [1] 0
unique(justice_recoded$i_only_read_if_i_have_to)
## [1] 6 3 4 5 2 1
sum(is.na(justice_recoded$i_only_read_if_i_have_to))
## [1] 0
#reading_is_one_of_my_favorite_pastimes
#(Original recoding) 1= Totally disagree, 2= Disagree, 3= Disagree somewhat, 4= Agree somewhat, 5= Agree, 6= Totally agree
#(Inverted scale)= 6= Totally disagree, 5= Disagree, 4= Disagree somewhat, 3= Agree somewhat, 2= Agree, 1= Totally agree
justice_recoded <- justice_recoded %>%
mutate(reading_is_one_of_my_favorite_pastimes=
recode(reading_is_one_of_my_favorite_pastimes,
"Totally disagree" =6,
"Disagree" =5,
"Disagree somewhat"=4,
"agree somewhat"=3,
"agree" =2,
"Totally agree"=1))
unique(Datos_Justice_Renamed_Filtered$reading_is_one_of_my_favorite_pastimes)
## [1] "agree" "agree somewhat" "Totally agree"
## [4] "Disagree" "Disagree somewhat" "Totally disagree"
sum(is.na(Datos_Justice_Renamed_Filtered$reading_is_one_of_my_favorite_pastimes))
## [1] 0
unique(justice_recoded$reading_is_one_of_my_favorite_pastimes)
## [1] 2 3 1 5 4 6
sum(is.na(justice_recoded$reading_is_one_of_my_favorite_pastimes))
## [1] 0
#i_find_it_hard_to_finish_a_book
#(Original recoding) 1= Totally disagree, 2= Disagree, 3= Disagree somewhat, 4= Agree somewhat, 5= Agree, 6= Totally agree
#(Inverted scale)= 6= Totally disagree, 5= Disagree, 4= Disagree somewhat, 3= Agree somewhat, 2= Agree, 1= Totally agree
justice_recoded <- justice_recoded %>%
mutate(i_find_it_hard_to_finish_a_book=
recode(i_find_it_hard_to_finish_a_book,
"Totally disagree" =6,
"Disagree" =5,
"Disagree somewhat"=4,
"agree somewhat"=3,
"agree" =2,
"Totally agree"=1))
unique(Datos_Justice_Renamed_Filtered$i_find_it_hard_to_finish_a_book)
## [1] "Disagree" "Totally disagree" "agree"
## [4] "agree somewhat" "Disagree somewhat" "Totally agree"
sum(is.na(Datos_Justice_Renamed_Filtered$i_find_it_hard_to_finish_a_book))
## [1] 0
unique(justice_recoded$i_find_it_hard_to_finish_a_book)
## [1] 5 6 2 3 4 1
sum(is.na(justice_recoded$i_find_it_hard_to_finish_a_book))
## [1] 0
#for_me_reading_for_pleasure_is_a_waste_of_time
#(Original recoding) 1= Totally disagree, 2= Disagree, 3= Disagree somewhat, 4= Agree somewhat, 5= Agree, 6= Totally agree
#(Inverted scale)= 6= Totally disagree, 5= Disagree, 4= Disagree somewhat, 3= Agree somewhat, 2= Agree, 1= Totally agree
justice_recoded <- justice_recoded %>%
mutate(for_me_reading_for_pleasure_is_a_waste_of_time=
recode(for_me_reading_for_pleasure_is_a_waste_of_time,
"Totally disagree" =6,
"Disagree" =5,
"Disagree somewhat"=4,
"agree somewhat"=3,
"agree" =2,
"Totally agree"=1))
unique(Datos_Justice_Renamed_Filtered$for_me_reading_for_pleasure_is_a_waste_of_time)
## [1] "Totally disagree" "Disagree" "Disagree somewhat"
## [4] "agree somewhat" "Totally agree" "agree"
sum(is.na(Datos_Justice_Renamed_Filtered$for_me_reading_for_pleasure_is_a_waste_of_time))
## [1] 0
unique(justice_recoded$for_me_reading_for_pleasure_is_a_waste_of_time)
## [1] 6 5 4 3 1 2
sum(is.na(justice_recoded$for_me_reading_for_pleasure_is_a_waste_of_time))
## [1] 0
#i_really_enjoy_going_to_a_bookstore_or_a_library
#(Original recoding) 1= Totally disagree, 2= Disagree, 3= Disagree somewhat, 4= Agree somewhat, 5= Agree, 6= Totally agree
#(Inverted scale)= 6= Totally disagree, 5= Disagree, 4= Disagree somewhat, 3= Agree somewhat, 2= Agree, 1= Totally agree
justice_recoded <- justice_recoded %>%
mutate(i_really_enjoy_going_to_a_bookstore_or_a_library=
recode(i_really_enjoy_going_to_a_bookstore_or_a_library,
"Totally disagree" =6,
"Disagree" =5,
"Disagree somewhat"=4,
"agree somewhat"=3,
"agree" =2,
"Totally agree"=1))
unique(Datos_Justice_Renamed_Filtered$i_really_enjoy_going_to_a_bookstore_or_a_library)
## [1] "agree somewhat" "Totally agree" "Totally disagree"
## [4] "agree" "Disagree" "Disagree somewhat"
sum(is.na(Datos_Justice_Renamed_Filtered$i_really_enjoy_going_to_a_bookstore_or_a_library))
## [1] 0
unique(justice_recoded$i_really_enjoy_going_to_a_bookstore_or_a_library)
## [1] 3 1 6 2 5 4
sum(is.na(justice_recoded$i_really_enjoy_going_to_a_bookstore_or_a_library))
## [1] 0
#as_soon_as_i_finish_a_book_i_already_think_about_the_one_im_going_to_start_next
#(Original recoding) 1= Totally disagree, 2= Disagree, 3= Disagree somewhat, 4= Agree somewhat, 5= Agree, 6= Totally agree
#(Inverted scale)= 6= Totally disagree, 5= Disagree, 4= Disagree somewhat, 3= Agree somewhat, 2= Agree, 1= Totally agree
justice_recoded <- justice_recoded %>%
mutate(as_soon_as_i_finish_a_book_i_already_think_about_the_one_im_going_to_start_next=
recode(as_soon_as_i_finish_a_book_i_already_think_about_the_one_im_going_to_start_next,
"Totally disagree" =6,
"Disagree" =5,
"Disagree somewhat"=4,
"agree somewhat"=3,
"agree" =2,
"Totally agree"=1))
unique(Datos_Justice_Renamed_Filtered$as_soon_as_i_finish_a_book_i_already_think_about_the_one_im_going_to_start_next)
## [1] "agree" "agree somewhat" "Totally agree"
## [4] "Totally disagree" "Disagree somewhat" "Disagree"
sum(is.na(Datos_Justice_Renamed_Filtered$as_soon_as_i_finish_a_book_i_already_think_about_the_one_im_going_to_start_next))
## [1] 0
unique(justice_recoded$as_soon_as_i_finish_a_book_i_already_think_about_the_one_im_going_to_start_next)
## [1] 2 3 1 6 4 5
sum(is.na(justice_recoded$as_soon_as_i_finish_a_book_i_already_think_about_the_one_im_going_to_start_next))
## [1] 0
View(justice_recoded)
Merging indicators into single variable
# Merging indicators into single variables --------------------------------
##procedural_justice
justice_recoded_merged <- mutate(justice_recoded, index_procedural_justice = rowMeans(select(justice_recoded,
the_rules_dictate_that_decisions_should_be_fair_and_unbiased:
the_rules_respect_my_rights_as_a_person), na.rm = TRUE))
#subscale
#index_procedural_justice_decision_making_formal
justice_recoded_merged <- mutate(justice_recoded_merged, index_procedural_justice_decision_making_formal = rowMeans
(select(justice_recoded,
the_rules_dictate_that_decisions_should_be_fair_and_unbiased:
the_rules_and_procedures_in_the_us_society_are_equally_fair_to_everyone), na.rm = TRUE))
#subscale
#index_procedural_justice_decision_making_informal
justice_recoded_merged <- mutate(justice_recoded_merged, index_procedural_justice_decision_making_informal = rowMeans
(select(justice_recoded,
decisions_are_consistent_across_people_and_situations:
decisions_are_equally_fair_to_everyone), na.rm = TRUE))
##subscale
#index_procedural_justice_quality_of_treatment
justice_recoded_merged <- mutate(justice_recoded_merged, index_procedural_justice_quality_of_treatment = rowMeans
(select(justice_recoded,
the_rules_lead_to_fair_treatment_when_decisions_are_being_made:
the_rules_respect_my_rights_as_a_person), na.rm = TRUE))
##identity_judgements
justice_recoded_merged <- mutate(justice_recoded_merged,
index_identity_judgements =
rowMeans(select(justice_recoded,
when_i_talk_about_the_us_society_i_usually_say_we_rather_than_they:
appreciate_your_unique_contributions),
na.rm = TRUE))
#Subscale
#index_identity_judgements_group_connexion
justice_recoded_merged <- mutate(justice_recoded_merged,
index_identity_judgements_group_connexion =
rowMeans(select(justice_recoded,
when_i_talk_about_the_us_society_i_usually_say_we_rather_than_they:
others_leave_me_out_of_the_group),
na.rm = TRUE))
#Subscale
#index_identity_judgements_pride
justice_recoded_merged <- mutate(justice_recoded_merged,
index_identity_judgements_pride =
rowMeans(select(justice_recoded,
i_feel_proud_to_be_a_part_of_the_us_society:
my_community_group_is_highly_respected_within_the_us_society_community_group_american_indian_or_alaska_native_asian_black_or_african_american_latinx_native_hawaiian_or_other_pacific_islander_w),
na.rm = TRUE))
#Subscale
#index_identity_judgements_repect
justice_recoded_merged <- mutate(justice_recoded_merged,
index_identity_judgements_repect =
rowMeans(select(justice_recoded,
value_you_as_a_member_and_respect_your_ideas:
appreciate_your_unique_contributions),
na.rm = TRUE))
##conspiracy_belief
justice_recoded_merged <- mutate(justice_recoded_merged,
index_conspiracy_belief =
rowMeans(select(justice_recoded,
the_government_is_involved_in_the_murder_of_innocent_citizens_and_or_well_known_public_figures_and_keeps_this_a_secret_the_power_held_by_heads_of_state_is_second_to_that_of_small_unknown_groups:
experiments_involving_new_drugs_or_technologies_are_routinely_carried_out_on_the_public_without_their_knowledge_or_consent_a_lot_of_important_information_is_deliberately_concealed_from_the_public),
na.rm = TRUE))
##socio_economic_status
justice_recoded_merged$socio_economic_status <- justice_recoded_merged$what_socio_economic_level_do_you_identify_with
##education_level
justice_recoded_merged$education_level<-justice_recoded_merged$highest_degree_finished
##literacy_level
justice_recoded_merged <- mutate(justice_recoded_merged,
index_literacy_level =
rowMeans(select(justice_recoded,
i_only_read_if_i_have_to:
as_soon_as_i_finish_a_book_i_already_think_about_the_one_im_going_to_start_next),
na.rm = TRUE))
## group (minority/majority / 5) (Majority = White & Latin White)
justice_recoded_merged$group<-justice_recoded_merged$describe_yourself
#subscale
# group_may_min (minority/majority / 5) (New variable)
unique(justice_recoded_merged$describe_yourself)
## [1] White;Latinx;
## [2] White;
## [3] Latinx;
## [4] Asian;
## [5] White;American Indian or Alaska Native;
## [6] Black or African American;
## [7] Latinx;White;
## [8] Asian;White;
## [9] American Indian or Alaska Native;White;
## [10] Black or African American;White;
## [11] Asian;Latinx;White;
## [12] White;Black or African American;Latinx;
## [13] American Indian or Alaska Native;
## [14] Black or African American;Latinx;
## [15] Latinx;Asian;
## [16] Native Hawaiian or Other Pacific Islander;
## [17] Latinx;Black or African American;
## [18] Black or African American;American Indian or Alaska Native;White;
## 18 Levels: American Indian or Alaska Native; ...
justice_recoded_merged<- justice_recoded_merged %>%
mutate(group_may_min= ifelse(justice_recoded_merged$describe_yourself== "White;" |justice_recoded_merged$describe_yourself== "White;Latinx;",
"Mayority", "Minority"))
#Cheking variable
table(justice_recoded_merged %>%
select(describe_yourself,group_may_min))
## group_may_min
## describe_yourself Mayority
## American Indian or Alaska Native; 0
## American Indian or Alaska Native;White; 0
## Asian; 0
## Asian;Latinx;White; 0
## Asian;White; 0
## Black or African American; 0
## Black or African American;American Indian or Alaska Native;White; 0
## Black or African American;Latinx; 0
## Black or African American;White; 0
## Latinx; 0
## Latinx;Asian; 0
## Latinx;Black or African American; 0
## Latinx;White; 0
## Native Hawaiian or Other Pacific Islander; 0
## White; 197
## White;American Indian or Alaska Native; 0
## White;Black or African American;Latinx; 0
## White;Latinx; 5
## group_may_min
## describe_yourself Minority
## American Indian or Alaska Native; 3
## American Indian or Alaska Native;White; 6
## Asian; 26
## Asian;Latinx;White; 1
## Asian;White; 3
## Black or African American; 108
## Black or African American;American Indian or Alaska Native;White; 1
## Black or African American;Latinx; 2
## Black or African American;White; 2
## Latinx; 18
## Latinx;Asian; 1
## Latinx;Black or African American; 3
## Latinx;White; 11
## Native Hawaiian or Other Pacific Islander; 1
## White; 0
## White;American Indian or Alaska Native; 4
## White;Black or African American;Latinx; 1
## White;Latinx; 0
head(justice_recoded_merged %>%
select(describe_yourself,group_may_min))
| describe_yourself | group_may_min |
|---|---|
| White;Latinx; | Mayority |
| White; | Mayority |
| Latinx; | Minority |
| White; | Mayority |
| Asian; | Minority |
| White; | Mayority |
##Gender_binary
justice_recoded_merged <- justice_recoded_merged %>%
mutate(gender_binary=
recode(gender,
"Man" = "Man",
"Woman"="Woman",
"Prefer not to say"= "",
"Non-binary" =""))
##(Political orientation /10)
justice_recoded_merged$dup_political_orientation<-justice_recoded_merged$political_orientation
#Blanks into_NA
justice_recoded_merged[justice_recoded_merged == ""] <- NA
Final data set and exports
# #Final data set and exports -------------------------------------------------------
#Final data set (includes subscales)
def_justice<- justice_recoded_merged %>%
select(gender:dup_political_orientation)
View(def_justice)
#export Datos_Justice_Renamed_Filtered
write.csv(Datos_Justice_Renamed_Filtered,"Bases_CSV/Datos_Justice_Renamed_Filtered.csv", row.names = FALSE)
#export justice_recoded_merged
write.csv(justice_recoded_merged,"Bases_CSV/justice_recoded_merged.csv", row.names = FALSE)
#export def_justice
write.csv(def_justice,"Bases_CSV/def_justice.csv", row.names = FALSE)
Summary statistics and Corplots
# Summary statistics and Corplots -----------------------------------------
stargazer(as.data.frame(def_justice),
type = "text",
median = TRUE,
title = "Summary Statistics",
out="./Summary_Tables/Summary_Statistics.html")
##
## Summary Statistics
## ==========================================================================================================
## Statistic N Mean St. Dev. Min Pctl(25) Median Pctl(75) Max
## ----------------------------------------------------------------------------------------------------------
## age 393 36.272 11.931 2 27 34 43 74
## index_procedural_justice 393 2.923 1.085 1.000 2.071 2.786 3.786 5.786
## index_procedural_justice_decision_making_formal 393 3.118 1.148 1.000 2.250 3.000 4.000 6.000
## index_procedural_justice_decision_making_informal 393 2.516 1.265 1.000 1.333 2.333 3.333 6.000
## index_procedural_justice_quality_of_treatment 393 2.987 1.137 1 2.1 3 3.9 6
## index_identity_judgements 393 3.397 0.862 1.000 2.818 3.455 4.000 5.273
## index_identity_judgements_group_connexion 393 3.589 0.880 1.000 3.000 3.667 4.167 5.333
## index_identity_judgements_pride 393 3.483 1.207 1 2.5 3.5 4.5 6
## index_identity_judgements_repect 393 2.954 1.222 1 2 3 4 5
## index_conspiracy_belief 393 2.948 1.107 1.000 2.167 2.917 3.750 6.000
## index_literacy_level 393 3.774 0.440 2 3.5 3.7 4 5
## dup_political_orientation 393 3.489 2.620 0 1 3 5 10
## ----------------------------------------------------------------------------------------------------------
#Corplot
forcorplot_def_justice <- def_justice %>%
select(index_procedural_justice,
index_identity_judgements,
index_conspiracy_belief,
index_literacy_level,
dup_political_orientation)
#ggpairs corplot: forcorplot_def_justice
ggpairs(forcorplot_def_justice,
columns = 1:5,
title = "Correlation plot",
columnLabels = c("Procedural Justice", "Identity judgements", "Conspiracy belief","Literacy level","Political orientation"))
#Export
plot1<- ggpairs(forcorplot_def_justice,
columns = 1:5,
title = "Correlation plot",
columnLabels = c("Procedural Justice", "Identity judgements", "Conspiracy belief","Literacy level","Political orientation"))
ggsave(plot = plot1, filename = "./Correlation_Plots/Corplot_1.png",
width = 11,
height =11,
type = "cairo",
dpi = "retina")
#chart.Correlation / corplot: forcorplot_def_justice
#Not possible to change variable names in the graph
#so I change them directly in the dataset
forcorplot_def_justice <- def_justice %>%
select(index_procedural_justice,
index_identity_judgements,
index_conspiracy_belief,
index_literacy_level,
dup_political_orientation)
forcorplot_def_justice_shortnames <- forcorplot_def_justice %>%
rename(Procedural_Justice =index_procedural_justice,
Identity_judgements =index_identity_judgements,
Conspiracy_belief=index_conspiracy_belief,
Literacy_level=index_literacy_level,
Political_orientation=dup_political_orientation)
chart.Correlation(forcorplot_def_justice_shortnames, histogram=TRUE, pch=19,
method = "pearson")
png("./Correlation_Plots/Corplot_2.png",
width = 2000, height = 1800,type = "cairo",res=300)
chart.Correlation(forcorplot_def_justice_shortnames, histogram=TRUE, pch=19,
method = "pearson")
dev.off()
## png
## 2
#Cormatrix:forcorplot_def_justice_with_subscales
forcormatrix_def_justice_with_subscales <- def_justice %>%
select(index_procedural_justice,
index_procedural_justice_decision_making_formal,
index_procedural_justice_decision_making_informal,
index_procedural_justice_quality_of_treatment,
index_identity_judgements,
index_identity_judgements_group_connexion,
index_identity_judgements_pride,
index_identity_judgements_repect,
index_conspiracy_belief,
index_literacy_level,
dup_political_orientation)
Correlation_Matrix_A <-forcormatrix_def_justice_with_subscales %>%
cor(use = "pairwise.complete.obs")
stargazer(Correlation_Matrix_A,
title="Full Correlation Matrix",
type = "text",
out = "./Correlation_Matrices_html/Correlation_Matrix_A.html")
##
## Full Correlation Matrix
## ======================================================================================================================================================================================================================================================================================================================================================================================================================================
## index_procedural_justice index_procedural_justice_decision_making_formal index_procedural_justice_decision_making_informal index_procedural_justice_quality_of_treatment index_identity_judgements index_identity_judgements_group_connexion index_identity_judgements_pride index_identity_judgements_repect index_conspiracy_belief index_literacy_level dup_political_orientation
## --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
## index_procedural_justice 1 0.907 0.913 0.949 0.605 0.472 0.534 0.536 -0.050 -0.116 0.341
## index_procedural_justice_decision_making_formal 0.907 1 0.835 0.756 0.501 0.398 0.458 0.421 0.017 -0.139 0.343
## index_procedural_justice_decision_making_informal 0.913 0.835 1 0.784 0.521 0.397 0.484 0.458 -0.044 -0.107 0.345
## index_procedural_justice_quality_of_treatment 0.949 0.756 0.784 1 0.618 0.481 0.524 0.560 -0.085 -0.091 0.289
## index_identity_judgements 0.605 0.501 0.521 0.618 1 0.899 0.807 0.761 -0.117 -0.145 0.265
## index_identity_judgements_group_connexion 0.472 0.398 0.397 0.481 0.899 1 0.657 0.453 -0.037 -0.125 0.227
## index_identity_judgements_pride 0.534 0.458 0.484 0.524 0.807 0.657 1 0.483 -0.147 -0.087 0.322
## index_identity_judgements_repect 0.536 0.421 0.458 0.560 0.761 0.453 0.483 1 -0.152 -0.138 0.146
## index_conspiracy_belief -0.050 0.017 -0.044 -0.085 -0.117 -0.037 -0.147 -0.152 1 -0.078 0.191
## index_literacy_level -0.116 -0.139 -0.107 -0.091 -0.145 -0.125 -0.087 -0.138 -0.078 1 0.002
## dup_political_orientation 0.341 0.343 0.345 0.289 0.265 0.227 0.322 0.146 0.191 0.002 1
## --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Correlation_Matrix_B <-forcorplot_def_justice %>%
cor(use = "pairwise.complete.obs")
stargazer(Correlation_Matrix_B,
title="Short Correlation Matrix",
type = "text",
out = "./Correlation_Matrices_html/Correlation_Matrix_B.html")
##
## Short Correlation Matrix
## ===================================================================================================================================================
## index_procedural_justice index_identity_judgements index_conspiracy_belief index_literacy_level dup_political_orientation
## ---------------------------------------------------------------------------------------------------------------------------------------------------
## index_procedural_justice 1 0.605 -0.050 -0.116 0.341
## index_identity_judgements 0.605 1 -0.117 -0.145 0.265
## index_conspiracy_belief -0.050 -0.117 1 -0.078 0.191
## index_literacy_level -0.116 -0.145 -0.078 1 0.002
## dup_political_orientation 0.341 0.265 0.191 0.002 1
## ---------------------------------------------------------------------------------------------------------------------------------------------------
Histograms
# Histograms --------------------------------------------------------------
#Conspiracy beliefs
def_justice %>%
ggplot(aes(x=index_conspiracy_belief))+
geom_histogram(fill="#9b19f5")+
geom_density(aes(y=..count..*0.2), alpha=.1, fill="#FF6666")+
labs(title="Conspiracy beliefs",
x="Conspiracy beliefs index",
y = "Count",
fill="Type")+
theme_classic()+
theme(axis.text.x = element_text( size = 13, angle = 0,hjust = 0.5,vjust = 0.5),
axis.title.y = element_text( size = 15),
axis.title.x = element_text( size = 15),
plot.title = element_text(size = 20,face = "bold"),
plot.subtitle = element_text(size = 15),
legend.title = element_text(size = 15),
legend.text = element_text(size = 13))
#Export
histogram_1<- def_justice %>%
ggplot(aes(x=index_conspiracy_belief))+
geom_histogram(fill="#9b19f5")+
labs(title="Conspiracy beliefs",
x="Conspiracy beliefs index",
y = "Count",
fill="Type")+
theme_classic()+
theme(axis.text.x = element_text( size = 13, angle = 0,hjust = 0.5,vjust = 0.5),
axis.title.y = element_text( size = 15),
axis.title.x = element_text( size = 15),
plot.title = element_text(size = 20,face = "bold"),
plot.subtitle = element_text(size = 15),
legend.title = element_text(size = 15),
legend.text = element_text(size = 13))
ggsave(plot = histogram_1,
filename = "./Graficas_Definitivas/index_conspiracy_beliefs.png",
width = 11, height = 7,
type= "cairo",
dpi = "retina")
#procedural Justice
def_justice %>%
ggplot(aes(x=index_procedural_justice))+
geom_histogram(fill="#e60049")+
geom_density(aes(y=..count..*0.2), alpha=.1, fill="#FF6666")+
labs(title="Procedural justice",
x="procedural Justice index",
y = "Count",
fill="Type")+
theme_classic()+
theme(axis.text.x = element_text( size = 13, angle = 0,hjust = 0.5,vjust = 0.5),
axis.title.y = element_text( size = 15),
axis.title.x = element_text( size = 15),
plot.title = element_text(size = 20,face = "bold"),
plot.subtitle = element_text(size = 15),
legend.title = element_text(size = 15),
legend.text = element_text(size = 13))
#Export
histogram_2<- def_justice %>%
ggplot(aes(x=index_procedural_justice))+
geom_histogram(fill="#e60049")+
labs(title="Procedural justice",
x="procedural Justice index",
y = "Count",
fill="Type")+
theme_classic()+
theme(axis.text.x = element_text( size = 13, angle = 0,hjust = 0.5,vjust = 0.5),
axis.title.y = element_text( size = 15),
axis.title.x = element_text( size = 15),
plot.title = element_text(size = 20,face = "bold"),
plot.subtitle = element_text(size = 15),
legend.title = element_text(size = 15),
legend.text = element_text(size = 13))
ggsave(plot = histogram_2,
filename = "./Graficas_Definitivas/index_procedural_justice.png",
width = 11, height = 7,
type= "cairo",
dpi = "retina")
#Identity Judgments
def_justice %>%
ggplot(aes(x=index_identity_judgements))+
geom_histogram(fill="#e60049")+
geom_density(aes(y=..count..*0.2), alpha=.1, fill="#FF6666")+
labs(title="Procedural justice",
x="Identity Judgments",
y = "Count",
fill="Type")+
theme_classic()+
theme(axis.text.x = element_text( size = 13, angle = 0,hjust = 0.5,vjust = 0.5),
axis.title.y = element_text( size = 15),
axis.title.x = element_text( size = 15),
plot.title = element_text(size = 20,face = "bold"),
plot.subtitle = element_text(size = 15),
legend.title = element_text(size = 15),
legend.text = element_text(size = 13))
#Export
histogram_3<- def_justice %>%
ggplot(aes(x=index_identity_judgements))+
geom_histogram(fill="#e60049")+
labs(title="Procedural justice",
x="Identity Judgments",
y = "Count",
fill="Type")+
theme_classic()+
theme(axis.text.x = element_text( size = 13, angle = 0,hjust = 0.5,vjust = 0.5),
axis.title.y = element_text( size = 15),
axis.title.x = element_text( size = 15),
plot.title = element_text(size = 20,face = "bold"),
plot.subtitle = element_text(size = 15),
legend.title = element_text(size = 15),
legend.text = element_text(size = 13))
ggsave(plot = histogram_3,
filename = "./Graficas_Definitivas/index_identity_judgements.png",
width = 11, height = 7,
type= "cairo",
dpi = "retina")
#Literacy Level
def_justice %>%
ggplot(aes(x=index_literacy_level))+
geom_histogram(fill="#e60049")+
geom_density(aes(y=..count..*0.2), alpha=.1, fill="#FF6666")+
labs(title="Literacy level",
x="Literacy level",
y = "Count",
fill="Type")+
theme_classic()+
theme(axis.text.x = element_text( size = 13, angle = 0,hjust = 0.5,vjust = 0.5),
axis.title.y = element_text( size = 15),
axis.title.x = element_text( size = 15),
plot.title = element_text(size = 20,face = "bold"),
plot.subtitle = element_text(size = 15),
legend.title = element_text(size = 15),
legend.text = element_text(size = 13))
#Export
histogram_4<-def_justice %>%
ggplot(aes(x=index_literacy_level))+
geom_histogram(fill="#e60049")+
labs(title="Literacy level",
x="Literacy level",
y = "Count",
fill="Type")+
theme_classic()+
theme(axis.text.x = element_text( size = 13, angle = 0,hjust = 0.5,vjust = 0.5),
axis.title.y = element_text( size = 15),
axis.title.x = element_text( size = 15),
plot.title = element_text(size = 20,face = "bold"),
plot.subtitle = element_text(size = 15),
legend.title = element_text(size = 15),
legend.text = element_text(size = 13))
ggsave(plot = histogram_4,
filename = "./Graficas_Definitivas/index_literacy_level.png",
width = 11, height = 7,
type= "cairo",
dpi = "retina")
#Age
def_justice %>%
ggplot(aes(x=age))+
geom_histogram(fill="#e60049")+
geom_density(aes(y=..count..*3), alpha=.1, fill="#FF6666")+
labs(title="Age",
x="Age",
y = "Count",
fill="Type")+
theme_classic()+
theme(axis.text.x = element_text( size = 13, angle = 0,hjust = 0.5,vjust = 0.5),
axis.title.y = element_text( size = 15),
axis.title.x = element_text( size = 15),
plot.title = element_text(size = 20,face = "bold"),
plot.subtitle = element_text(size = 15),
legend.title = element_text(size = 15),
legend.text = element_text(size = 13))
#Export
histogram_5<-def_justice %>%
ggplot(aes(x=age))+
geom_histogram(fill="#e60049")+
labs(title="Age",
x="Age",
y = "Count",
fill="Type")+
theme_classic()+
theme(axis.text.x = element_text( size = 13, angle = 0,hjust = 0.5,vjust = 0.5),
axis.title.y = element_text( size = 15),
axis.title.x = element_text( size = 15),
plot.title = element_text(size = 20,face = "bold"),
plot.subtitle = element_text(size = 15),
legend.title = element_text(size = 15),
legend.text = element_text(size = 13))
ggsave(plot = histogram_5,
filename = "./Graficas_Definitivas/age.png",
width = 11, height = 7,
type= "cairo",
dpi = "retina")
Barplots
# Histograms --------------------------------------------------------------
#Conspiracy beliefs
def_justice %>%
ggplot(aes(x=index_conspiracy_belief))+
geom_histogram(fill="#9b19f5")+
geom_density(aes(y=..count..*0.2), alpha=.1, fill="#FF6666")+
labs(title="Conspiracy beliefs",
x="Conspiracy beliefs index",
y = "Count",
fill="Type")+
theme_classic()+
theme(axis.text.x = element_text( size = 13, angle = 0,hjust = 0.5,vjust = 0.5),
axis.title.y = element_text( size = 15),
axis.title.x = element_text( size = 15),
plot.title = element_text(size = 20,face = "bold"),
plot.subtitle = element_text(size = 15),
legend.title = element_text(size = 15),
legend.text = element_text(size = 13))
#Export
histogram_1<- def_justice %>%
ggplot(aes(x=index_conspiracy_belief))+
geom_histogram(fill="#9b19f5")+
labs(title="Conspiracy beliefs",
x="Conspiracy beliefs index",
y = "Count",
fill="Type")+
theme_classic()+
theme(axis.text.x = element_text( size = 13, angle = 0,hjust = 0.5,vjust = 0.5),
axis.title.y = element_text( size = 15),
axis.title.x = element_text( size = 15),
plot.title = element_text(size = 20,face = "bold"),
plot.subtitle = element_text(size = 15),
legend.title = element_text(size = 15),
legend.text = element_text(size = 13))
ggsave(plot = histogram_1,
filename = "./Graficas_Definitivas/index_conspiracy_beliefs.png",
width = 11, height = 7,
type= "cairo",
dpi = "retina")
#procedural Justice
def_justice %>%
ggplot(aes(x=index_procedural_justice))+
geom_histogram(fill="#e60049")+
geom_density(aes(y=..count..*0.2), alpha=.1, fill="#FF6666")+
labs(title="Procedural justice",
x="procedural Justice index",
y = "Count",
fill="Type")+
theme_classic()+
theme(axis.text.x = element_text( size = 13, angle = 0,hjust = 0.5,vjust = 0.5),
axis.title.y = element_text( size = 15),
axis.title.x = element_text( size = 15),
plot.title = element_text(size = 20,face = "bold"),
plot.subtitle = element_text(size = 15),
legend.title = element_text(size = 15),
legend.text = element_text(size = 13))
#Export
histogram_2<- def_justice %>%
ggplot(aes(x=index_procedural_justice))+
geom_histogram(fill="#e60049")+
labs(title="Procedural justice",
x="procedural Justice index",
y = "Count",
fill="Type")+
theme_classic()+
theme(axis.text.x = element_text( size = 13, angle = 0,hjust = 0.5,vjust = 0.5),
axis.title.y = element_text( size = 15),
axis.title.x = element_text( size = 15),
plot.title = element_text(size = 20,face = "bold"),
plot.subtitle = element_text(size = 15),
legend.title = element_text(size = 15),
legend.text = element_text(size = 13))
ggsave(plot = histogram_2,
filename = "./Graficas_Definitivas/index_procedural_justice.png",
width = 11, height = 7,
type= "cairo",
dpi = "retina")
#Identity Judgments
def_justice %>%
ggplot(aes(x=index_identity_judgements))+
geom_histogram(fill="#e60049")+
geom_density(aes(y=..count..*0.2), alpha=.1, fill="#FF6666")+
labs(title="Procedural justice",
x="Identity Judgments",
y = "Count",
fill="Type")+
theme_classic()+
theme(axis.text.x = element_text( size = 13, angle = 0,hjust = 0.5,vjust = 0.5),
axis.title.y = element_text( size = 15),
axis.title.x = element_text( size = 15),
plot.title = element_text(size = 20,face = "bold"),
plot.subtitle = element_text(size = 15),
legend.title = element_text(size = 15),
legend.text = element_text(size = 13))
#Export
histogram_3<- def_justice %>%
ggplot(aes(x=index_identity_judgements))+
geom_histogram(fill="#e60049")+
labs(title="Procedural justice",
x="Identity Judgments",
y = "Count",
fill="Type")+
theme_classic()+
theme(axis.text.x = element_text( size = 13, angle = 0,hjust = 0.5,vjust = 0.5),
axis.title.y = element_text( size = 15),
axis.title.x = element_text( size = 15),
plot.title = element_text(size = 20,face = "bold"),
plot.subtitle = element_text(size = 15),
legend.title = element_text(size = 15),
legend.text = element_text(size = 13))
ggsave(plot = histogram_3,
filename = "./Graficas_Definitivas/index_identity_judgements.png",
width = 11, height = 7,
type= "cairo",
dpi = "retina")
#Literacy Level
def_justice %>%
ggplot(aes(x=index_literacy_level))+
geom_histogram(fill="#e60049")+
geom_density(aes(y=..count..*0.2), alpha=.1, fill="#FF6666")+
labs(title="Literacy level",
x="Literacy level",
y = "Count",
fill="Type")+
theme_classic()+
theme(axis.text.x = element_text( size = 13, angle = 0,hjust = 0.5,vjust = 0.5),
axis.title.y = element_text( size = 15),
axis.title.x = element_text( size = 15),
plot.title = element_text(size = 20,face = "bold"),
plot.subtitle = element_text(size = 15),
legend.title = element_text(size = 15),
legend.text = element_text(size = 13))
#Export
histogram_4<-def_justice %>%
ggplot(aes(x=index_literacy_level))+
geom_histogram(fill="#e60049")+
labs(title="Literacy level",
x="Literacy level",
y = "Count",
fill="Type")+
theme_classic()+
theme(axis.text.x = element_text( size = 13, angle = 0,hjust = 0.5,vjust = 0.5),
axis.title.y = element_text( size = 15),
axis.title.x = element_text( size = 15),
plot.title = element_text(size = 20,face = "bold"),
plot.subtitle = element_text(size = 15),
legend.title = element_text(size = 15),
legend.text = element_text(size = 13))
ggsave(plot = histogram_4,
filename = "./Graficas_Definitivas/index_literacy_level.png",
width = 11, height = 7,
type= "cairo",
dpi = "retina")
#Age
def_justice %>%
ggplot(aes(x=age))+
geom_histogram(fill="#e60049")+
geom_density(aes(y=..count..*3), alpha=.1, fill="#FF6666")+
labs(title="Age",
x="Age",
y = "Count",
fill="Type")+
theme_classic()+
theme(axis.text.x = element_text( size = 13, angle = 0,hjust = 0.5,vjust = 0.5),
axis.title.y = element_text( size = 15),
axis.title.x = element_text( size = 15),
plot.title = element_text(size = 20,face = "bold"),
plot.subtitle = element_text(size = 15),
legend.title = element_text(size = 15),
legend.text = element_text(size = 13))
#Export
histogram_5<-def_justice %>%
ggplot(aes(x=age))+
geom_histogram(fill="#e60049")+
labs(title="Age",
x="Age",
y = "Count",
fill="Type")+
theme_classic()+
theme(axis.text.x = element_text( size = 13, angle = 0,hjust = 0.5,vjust = 0.5),
axis.title.y = element_text( size = 15),
axis.title.x = element_text( size = 15),
plot.title = element_text(size = 20,face = "bold"),
plot.subtitle = element_text(size = 15),
legend.title = element_text(size = 15),
legend.text = element_text(size = 13))
ggsave(plot = histogram_5,
filename = "./Graficas_Definitivas/age.png",
width = 11, height = 7,
type= "cairo",
dpi = "retina")
Regressions
# Regression --------------------------------------------------------------
#Regression table
#M0 (Minimal model)
m0_justice<-lm(index_conspiracy_belief ~ index_procedural_justice +
index_identity_judgements +
index_literacy_level+
group_may_min+
dup_political_orientation,
data = def_justice)
#tbl: Export
m0_justice %>%
tbl_regression(
exponentiate = FALSE,
pvalue_fun = ~style_pvalue(.x, digits = 2),
intercept = TRUE) %>%
add_global_p() %>%
bold_p() %>%
bold_labels() %>%
italicize_levels() %>%
add_glance_table(include = c(nobs,r.squared,adj.r.squared,df.residual)) %>%
add_significance_stars(hide_ci = FALSE, hide_p = FALSE) %>%
modify_header(statistic ~ "**Test Statistic**") %>%
bold_p() %>%
as_gt() %>%
gt::tab_header(
title = gt::md("**Conspiracy beliefs**"),
subtitle = gt::md("Minimal model")) %>%
gtsave("Regression_Tables/tbl_package/m0_justice_minimal.png")
#tbl: Merge
m0_justice_merge <- m0_justice %>%
tbl_regression(
exponentiate = FALSE,
pvalue_fun = ~style_pvalue(.x, digits = 2),
intercept = TRUE) %>%
add_global_p() %>%
bold_p() %>%
bold_labels() %>%
italicize_levels() %>%
add_glance_table(include = c(nobs,r.squared,adj.r.squared,df.residual)) %>%
add_significance_stars(hide_ci = FALSE, hide_p = FALSE) %>%
modify_header(statistic ~ "**Test Statistic**") %>%
bold_p()
#Stargazer
stargazer(m0_justice,
ci = TRUE,
type = "text",
title="Conspiracy beliefs",
align=TRUE,
style = "all",
out = "Regression_Tables/stargazer/Regression_Table_0.html")
##
## Conspiracy beliefs
## ==============================================================
## Dependent variable:
## ------------------------------------
## index_conspiracy_belief
## --------------------------------------------------------------
## index_procedural_justice -0.059
## (-0.185, 0.067)
## t = -0.920
## p = 0.359
## index_identity_judgements -0.201**
## (-0.356, -0.045)
## t = -2.529
## p = 0.012
## index_literacy_level -0.257**
## (-0.499, -0.015)
## t = -2.077
## p = 0.039
## group_may_minMinority 0.241**
## (0.028, 0.453)
## t = 2.223
## p = 0.027
## dup_political_orientation 0.108***
## (0.065, 0.151)
## t = 4.935
## p = 0.00001
## Constant 4.278***
## (3.197, 5.359)
## t = 7.756
## p = 0.000
## --------------------------------------------------------------
## Observations 393
## R2 0.091
## Adjusted R2 0.079
## Residual Std. Error 1.062 (df = 387)
## F Statistic 7.736*** (df = 5; 387) (p = 0.00000)
## ==============================================================
## Note: *p<0.1; **p<0.05; ***p<0.01
#M1 (Full)
m1_justice<-lm(index_conspiracy_belief ~ index_procedural_justice +
index_identity_judgements +
index_literacy_level+
socio_economic_status +
education_level+
group_may_min+
dup_political_orientation+
age+
gender_binary,
data = def_justice)
#tbl: Export
m1_justice %>%
tbl_regression(
exponentiate = FALSE,
pvalue_fun = ~style_pvalue(.x, digits = 2),
intercept = TRUE) %>%
add_global_p() %>%
bold_p() %>%
bold_labels() %>%
italicize_levels() %>%
add_glance_table(include = c(nobs,r.squared,adj.r.squared,df.residual)) %>%
add_significance_stars(hide_ci = FALSE, hide_p = FALSE) %>%
modify_header(statistic ~ "**Test Statistic**") %>%
bold_p() %>%
as_gt() %>%
gt::tab_header(
title = gt::md("**Conspiracy beliefs linear regression**"),
subtitle = gt::md("Full model")) %>%
gtsave("Regression_Tables/tbl_package/m1_justice_full.png")
#tbl: Merge
m1_justice_merge <- m1_justice %>%
tbl_regression(
exponentiate = FALSE,
pvalue_fun = ~style_pvalue(.x, digits = 2),
intercept = TRUE) %>%
add_global_p() %>%
bold_p() %>%
bold_labels() %>%
italicize_levels() %>%
add_glance_table(include = c(nobs,r.squared,adj.r.squared,df.residual)) %>%
add_significance_stars(hide_ci = FALSE, hide_p = FALSE) %>%
modify_header(statistic ~ "**Test Statistic**") %>%
bold_p()
#Stargazer
stargazer(m1_justice,
ci = TRUE,
type = "text",
title="Conspiracy beliefs",
align=TRUE,
style = "all",
out = "Regression_Tables/stargazer/Regression_Table_1.html")
##
## Conspiracy beliefs
## ================================================================================================
## Dependent variable:
## -------------------------------------
## index_conspiracy_belief
## ------------------------------------------------------------------------------------------------
## index_procedural_justice -0.082
## (-0.209, 0.045)
## t = -1.263
## p = 0.208
## index_identity_judgements -0.132
## (-0.300, 0.037)
## t = -1.535
## p = 0.126
## index_literacy_level -0.271**
## (-0.521, -0.020)
## t = -2.120
## p = 0.035
## socio_economic_statusUpper-middle-class 0.274*
## (0.001, 0.547)
## t = 1.965
## p = 0.051
## socio_economic_statusUpper class 0.319
## (-0.890, 1.528)
## t = 0.517
## p = 0.606
## socio_economic_statusWorking-class 0.139
## (-0.128, 0.406)
## t = 1.021
## p = 0.308
## education_levelBachelor’s degree (e.g. BA, BS) -0.199
## (-0.576, 0.179)
## t = -1.031
## p = 0.304
## education_levelDoctorate (e.g. PhD, EdD) 0.518
## (-0.583, 1.619)
## t = 0.922
## p = 0.358
## education_levelHigh school degree or equivalent (e.g. GED) 0.376
## (-0.103, 0.855)
## t = 1.539
## p = 0.125
## education_levelPrimary or middle school diploma 0.239
## (-0.691, 1.168)
## t = 0.503
## p = 0.616
## education_levelProfessional degree (e.g. MD, DDS, DVM) -0.198
## (-0.665, 0.270)
## t = -0.828
## p = 0.409
## education_levelSome college, no degree 0.077
## (-0.333, 0.487)
## t = 0.368
## p = 0.714
## group_may_minMinority 0.213*
## (-0.011, 0.437)
## t = 1.861
## p = 0.064
## dup_political_orientation 0.102***
## (0.057, 0.148)
## t = 4.429
## p = 0.00002
## age -0.003
## (-0.013, 0.007)
## t = -0.674
## p = 0.501
## gender_binaryWoman -0.049
## (-0.270, 0.172)
## t = -0.431
## p = 0.667
## Constant 4.259***
## (3.072, 5.447)
## t = 7.029
## p = 0.000
## ------------------------------------------------------------------------------------------------
## Observations 382
## R2 0.129
## Adjusted R2 0.091
## Residual Std. Error 1.053 (df = 365)
## F Statistic 3.384*** (df = 16; 365) (p = 0.00002)
## ================================================================================================
## Note: *p<0.1; **p<0.05; ***p<0.01
#M2 Parsimonious model (Drop: socio_economic_status/ education_level)
m2_justice<-lm(index_conspiracy_belief ~ index_procedural_justice +
index_identity_judgements +
index_literacy_level+
group_may_min+
dup_political_orientation+
age+
gender_binary,
data = def_justice)
#tbl: Export
m2_justice %>%
tbl_regression(
exponentiate = FALSE,
pvalue_fun = ~style_pvalue(.x, digits = 2),
intercept = TRUE) %>%
add_global_p() %>%
bold_p() %>%
bold_labels() %>%
italicize_levels() %>%
add_glance_table(include = c(nobs,r.squared,adj.r.squared,df.residual)) %>%
add_significance_stars(hide_ci = FALSE, hide_p = FALSE) %>%
modify_header(statistic ~ "**Test Statistic**") %>%
bold_p() %>%
as_gt() %>%
gt::tab_header(
title = gt::md("**Conspiracy beliefs linear regression**"),
subtitle = gt::md("Parsimonious model")) %>%
gtsave("Regression_Tables/tbl_package/m2_justice_parsimonious.png")
#tbl: Merge
m2_justice_merge <- m2_justice %>%
tbl_regression(
exponentiate = FALSE,
pvalue_fun = ~style_pvalue(.x, digits = 2),
intercept = TRUE) %>%
add_global_p() %>%
bold_p() %>%
bold_labels() %>%
italicize_levels() %>%
add_glance_table(include = c(nobs,r.squared,adj.r.squared,df.residual)) %>%
add_significance_stars(hide_ci = FALSE, hide_p = FALSE) %>%
modify_header(statistic ~ "**Test Statistic**") %>%
bold_p()
#Stargazer
stargazer(m2_justice,
ci = TRUE,
type = "text",
title="Conspiracy beliefs",
align=TRUE,
style = "all",
out = "Regression_Tables/stargazer/Regression_Table_2.html")
##
## Conspiracy beliefs
## ==============================================================
## Dependent variable:
## ------------------------------------
## index_conspiracy_belief
## --------------------------------------------------------------
## index_procedural_justice -0.062
## (-0.189, 0.065)
## t = -0.953
## p = 0.342
## index_identity_judgements -0.182**
## (-0.341, -0.024)
## t = -2.254
## p = 0.025
## index_literacy_level -0.237*
## (-0.486, 0.012)
## t = -1.864
## p = 0.064
## group_may_minMinority 0.186
## (-0.037, 0.409)
## t = 1.635
## p = 0.103
## dup_political_orientation 0.114***
## (0.070, 0.159)
## t = 5.021
## p = 0.00000
## age -0.005
## (-0.014, 0.005)
## t = -0.936
## p = 0.351
## gender_binaryWoman -0.029
## (-0.251, 0.192)
## t = -0.260
## p = 0.796
## Constant 4.331***
## (3.197, 5.466)
## t = 7.484
## p = 0.000
## --------------------------------------------------------------
## Observations 382
## R2 0.091
## Adjusted R2 0.074
## Residual Std. Error 1.063 (df = 374)
## F Statistic 5.325*** (df = 7; 374) (p = 0.00001)
## ==============================================================
## Note: *p<0.1; **p<0.05; ***p<0.01
#Regression table with all 3 models
tbl_merge(list(m1_justice_merge,
m2_justice_merge,
m0_justice_merge),
tab_spanner = c("**Full model**", "**Parsimonious model**","**Minimal model**")) %>%
as_gt() %>%
gt::tab_header(
title = gt::md("**Conspiracy beliefs linear regression**"),
subtitle = gt::md("_Model comparison_")) %>%
gtsave("Regression_Tables/tbl_package/combined_m0_m1_m2.png",vwidth = 1500, vheight = 1000)
stargazer( m0_justice,
m1_justice,
m2_justice,
ci = TRUE,
type = "text",
title="Conspiracy beliefs",
align=TRUE,
out = "Regression_Tables/stargazer/Model_comparison_m0_m1_m2.html")
##
## Conspiracy beliefs
## ================================================================================================================================
## Dependent variable:
## ---------------------------------------------------------------------
## index_conspiracy_belief
## (1) (2) (3)
## --------------------------------------------------------------------------------------------------------------------------------
## index_procedural_justice -0.059 -0.082 -0.062
## (-0.185, 0.067) (-0.209, 0.045) (-0.189, 0.065)
##
## index_identity_judgements -0.201** -0.132 -0.182**
## (-0.356, -0.045) (-0.300, 0.037) (-0.341, -0.024)
##
## index_literacy_level -0.257** -0.271** -0.237*
## (-0.499, -0.015) (-0.521, -0.020) (-0.486, 0.012)
##
## socio_economic_statusUpper-middle-class 0.274*
## (0.001, 0.547)
##
## socio_economic_statusUpper class 0.319
## (-0.890, 1.528)
##
## socio_economic_statusWorking-class 0.139
## (-0.128, 0.406)
##
## education_levelBachelor’s degree (e.g. BA, BS) -0.199
## (-0.576, 0.179)
##
## education_levelDoctorate (e.g. PhD, EdD) 0.518
## (-0.583, 1.619)
##
## education_levelHigh school degree or equivalent (e.g. GED) 0.376
## (-0.103, 0.855)
##
## education_levelPrimary or middle school diploma 0.239
## (-0.691, 1.168)
##
## education_levelProfessional degree (e.g. MD, DDS, DVM) -0.198
## (-0.665, 0.270)
##
## education_levelSome college, no degree 0.077
## (-0.333, 0.487)
##
## group_may_minMinority 0.241** 0.213* 0.186
## (0.028, 0.453) (-0.011, 0.437) (-0.037, 0.409)
##
## dup_political_orientation 0.108*** 0.102*** 0.114***
## (0.065, 0.151) (0.057, 0.148) (0.070, 0.159)
##
## age -0.003 -0.005
## (-0.013, 0.007) (-0.014, 0.005)
##
## gender_binaryWoman -0.049 -0.029
## (-0.270, 0.172) (-0.251, 0.192)
##
## Constant 4.278*** 4.259*** 4.331***
## (3.197, 5.359) (3.072, 5.447) (3.197, 5.466)
##
## --------------------------------------------------------------------------------------------------------------------------------
## Observations 393 382 382
## R2 0.091 0.129 0.091
## Adjusted R2 0.079 0.091 0.074
## Residual Std. Error 1.062 (df = 387) 1.053 (df = 365) 1.063 (df = 374)
## F Statistic 7.736*** (df = 5; 387) 3.384*** (df = 16; 365) 5.325*** (df = 7; 374)
## ================================================================================================================================
## Note: *p<0.1; **p<0.05; ***p<0.01
#Regression with sub scales
#m1_justice_subscales (Drop:index_procedural_justice/index_identity_judgements)
m1_justice_subscales<-lm(index_conspiracy_belief ~
index_procedural_justice_decision_making_formal+
index_procedural_justice_decision_making_informal+
index_procedural_justice_quality_of_treatment+
index_identity_judgements_group_connexion+
index_identity_judgements_pride+
index_identity_judgements_repect+
index_literacy_level+
socio_economic_status +
education_level+
group_may_min+
dup_political_orientation+
age+
gender_binary,
data = def_justice)
#tbl: Export
m1_justice_subscales %>%
tbl_regression(
exponentiate = FALSE,
pvalue_fun = ~style_pvalue(.x, digits = 2),
intercept = TRUE) %>%
add_global_p() %>%
bold_p() %>%
bold_labels() %>%
italicize_levels() %>%
add_glance_table(include = c(nobs,r.squared,adj.r.squared,df.residual)) %>%
add_significance_stars(hide_ci = FALSE, hide_p = FALSE) %>%
modify_header(statistic ~ "**Test Statistic**") %>%
bold_p() %>%
as_gt() %>%
gt::tab_header(
title = gt::md("**Conspiracy beliefs linear regression**"),
subtitle = gt::md("Full model (sub scales)")) %>%
gtsave("Regression_Tables/tbl_package/sub_scales/m1_justice_subscales.png")
#tbl: Merge
m1_justice_subscales_merge <- m1_justice_subscales %>%
tbl_regression(
exponentiate = FALSE,
pvalue_fun = ~style_pvalue(.x, digits = 2),
intercept = TRUE) %>%
add_global_p() %>%
bold_p() %>%
bold_labels() %>%
italicize_levels() %>%
add_glance_table(include = c(nobs,r.squared,adj.r.squared,df.residual)) %>%
add_significance_stars(hide_ci = FALSE, hide_p = FALSE) %>%
modify_header(statistic ~ "**Test Statistic**") %>%
bold_p()
#Stargazer
stargazer(m1_justice_subscales,
ci = TRUE,
type = "text",
title="Conspiracy beliefs",
align=TRUE,
style = "all",
out = "Regression_Tables/stargazer/sub_scales/m1_justice_subscales.html")
##
## Conspiracy beliefs
## ================================================================================================
## Dependent variable:
## -------------------------------------
## index_conspiracy_belief
## ------------------------------------------------------------------------------------------------
## index_procedural_justice_decision_making_formal 0.138
## (-0.047, 0.323)
## t = 1.462
## p = 0.145
## index_procedural_justice_decision_making_informal -0.089
## (-0.260, 0.082)
## t = -1.020
## p = 0.309
## index_procedural_justice_quality_of_treatment -0.069
## (-0.240, 0.103)
## t = -0.783
## p = 0.434
## index_identity_judgements_group_connexion 0.185**
## (0.016, 0.353)
## t = 2.151
## p = 0.033
## index_identity_judgements_pride -0.191***
## (-0.331, -0.052)
## t = -2.693
## p = 0.008
## index_identity_judgements_repect -0.122**
## (-0.236, -0.009)
## t = -2.114
## p = 0.036
## index_literacy_level -0.261**
## (-0.509, -0.013)
## t = -2.062
## p = 0.040
## socio_economic_statusUpper-middle-class 0.333**
## (0.061, 0.604)
## t = 2.403
## p = 0.017
## socio_economic_statusUpper class 0.369
## (-0.824, 1.561)
## t = 0.606
## p = 0.545
## socio_economic_statusWorking-class 0.118
## (-0.147, 0.383)
## t = 0.874
## p = 0.383
## education_levelBachelor’s degree (e.g. BA, BS) -0.185
## (-0.558, 0.189)
## t = -0.970
## p = 0.333
## education_levelDoctorate (e.g. PhD, EdD) 0.460
## (-0.631, 1.550)
## t = 0.827
## p = 0.410
## education_levelHigh school degree or equivalent (e.g. GED) 0.430*
## (-0.045, 0.906)
## t = 1.773
## p = 0.078
## education_levelPrimary or middle school diploma 0.295
## (-0.624, 1.215)
## t = 0.629
## p = 0.530
## education_levelProfessional degree (e.g. MD, DDS, DVM) -0.166
## (-0.629, 0.297)
## t = -0.704
## p = 0.482
## education_levelSome college, no degree 0.097
## (-0.307, 0.501)
## t = 0.469
## p = 0.640
## group_may_minMinority 0.089
## (-0.148, 0.326)
## t = 0.737
## p = 0.462
## dup_political_orientation 0.101***
## (0.056, 0.147)
## t = 4.371
## p = 0.00002
## age -0.004
## (-0.014, 0.006)
## t = -0.716
## p = 0.475
## gender_binaryWoman -0.078
## (-0.297, 0.142)
## t = -0.696
## p = 0.487
## Constant 3.956***
## (2.769, 5.143)
## t = 6.530
## p = 0.000
## ------------------------------------------------------------------------------------------------
## Observations 382
## R2 0.164
## Adjusted R2 0.118
## Residual Std. Error 1.037 (df = 361)
## F Statistic 3.553*** (df = 20; 361) (p = 0.00000)
## ================================================================================================
## Note: *p<0.1; **p<0.05; ***p<0.01
#Regression table with full model vs full model_subscales
tbl_merge(list(m1_justice_merge,
m1_justice_subscales_merge),
tab_spanner = c("**Full model**", "**Full model (sub scales)**")) %>%
as_gt() %>%
gt::tab_header(
title = gt::md("**Conspiracy beliefs linear regression**"),
subtitle = gt::md("_Model comparison_")) %>%
gtsave("Regression_Tables/tbl_package/sub_scales/combined_m1_m1subscales.png",vwidth = 1500, vheight = 1000)
#Stargazer
stargazer(m1_justice,
m1_justice_subscales,
ci = TRUE,
type = "text",
title="Conspiracy beliefs",
align=TRUE,
style = "all",
out = "Regression_Tables/stargazer/sub_scales/Model_comparison_m1_m1subscales.html")
##
## Conspiracy beliefs
## ======================================================================================================================================
## Dependent variable:
## ---------------------------------------------------------------------------
## index_conspiracy_belief
## (1) (2)
## --------------------------------------------------------------------------------------------------------------------------------------
## index_procedural_justice -0.082
## (-0.209, 0.045)
## t = -1.263
## p = 0.208
## index_identity_judgements -0.132
## (-0.300, 0.037)
## t = -1.535
## p = 0.126
## index_procedural_justice_decision_making_formal 0.138
## (-0.047, 0.323)
## t = 1.462
## p = 0.145
## index_procedural_justice_decision_making_informal -0.089
## (-0.260, 0.082)
## t = -1.020
## p = 0.309
## index_procedural_justice_quality_of_treatment -0.069
## (-0.240, 0.103)
## t = -0.783
## p = 0.434
## index_identity_judgements_group_connexion 0.185**
## (0.016, 0.353)
## t = 2.151
## p = 0.033
## index_identity_judgements_pride -0.191***
## (-0.331, -0.052)
## t = -2.693
## p = 0.008
## index_identity_judgements_repect -0.122**
## (-0.236, -0.009)
## t = -2.114
## p = 0.036
## index_literacy_level -0.271** -0.261**
## (-0.521, -0.020) (-0.509, -0.013)
## t = -2.120 t = -2.062
## p = 0.035 p = 0.040
## socio_economic_statusUpper-middle-class 0.274* 0.333**
## (0.001, 0.547) (0.061, 0.604)
## t = 1.965 t = 2.403
## p = 0.051 p = 0.017
## socio_economic_statusUpper class 0.319 0.369
## (-0.890, 1.528) (-0.824, 1.561)
## t = 0.517 t = 0.606
## p = 0.606 p = 0.545
## socio_economic_statusWorking-class 0.139 0.118
## (-0.128, 0.406) (-0.147, 0.383)
## t = 1.021 t = 0.874
## p = 0.308 p = 0.383
## education_levelBachelor’s degree (e.g. BA, BS) -0.199 -0.185
## (-0.576, 0.179) (-0.558, 0.189)
## t = -1.031 t = -0.970
## p = 0.304 p = 0.333
## education_levelDoctorate (e.g. PhD, EdD) 0.518 0.460
## (-0.583, 1.619) (-0.631, 1.550)
## t = 0.922 t = 0.827
## p = 0.358 p = 0.410
## education_levelHigh school degree or equivalent (e.g. GED) 0.376 0.430*
## (-0.103, 0.855) (-0.045, 0.906)
## t = 1.539 t = 1.773
## p = 0.125 p = 0.078
## education_levelPrimary or middle school diploma 0.239 0.295
## (-0.691, 1.168) (-0.624, 1.215)
## t = 0.503 t = 0.629
## p = 0.616 p = 0.530
## education_levelProfessional degree (e.g. MD, DDS, DVM) -0.198 -0.166
## (-0.665, 0.270) (-0.629, 0.297)
## t = -0.828 t = -0.704
## p = 0.409 p = 0.482
## education_levelSome college, no degree 0.077 0.097
## (-0.333, 0.487) (-0.307, 0.501)
## t = 0.368 t = 0.469
## p = 0.714 p = 0.640
## group_may_minMinority 0.213* 0.089
## (-0.011, 0.437) (-0.148, 0.326)
## t = 1.861 t = 0.737
## p = 0.064 p = 0.462
## dup_political_orientation 0.102*** 0.101***
## (0.057, 0.148) (0.056, 0.147)
## t = 4.429 t = 4.371
## p = 0.00002 p = 0.00002
## age -0.003 -0.004
## (-0.013, 0.007) (-0.014, 0.006)
## t = -0.674 t = -0.716
## p = 0.501 p = 0.475
## gender_binaryWoman -0.049 -0.078
## (-0.270, 0.172) (-0.297, 0.142)
## t = -0.431 t = -0.696
## p = 0.667 p = 0.487
## Constant 4.259*** 3.956***
## (3.072, 5.447) (2.769, 5.143)
## t = 7.029 t = 6.530
## p = 0.000 p = 0.000
## --------------------------------------------------------------------------------------------------------------------------------------
## Observations 382 382
## R2 0.129 0.164
## Adjusted R2 0.091 0.118
## Residual Std. Error 1.053 (df = 365) 1.037 (df = 361)
## F Statistic 3.384*** (df = 16; 365) (p = 0.00002) 3.553*** (df = 20; 361) (p = 0.00000)
## ======================================================================================================================================
## Note: *p<0.1; **p<0.05; ***p<0.01
Regression graphs
# Regression graphs -------------------------------------------------------
#Effect_plot: index_procedural_justice
png("./Regression_Tables/effectplots/effect_plot_index_procedural_justice.png",
width = 2000, height = 1800,type = "cairo",res=300)
effect_plot(m1_justice, pred = index_procedural_justice,
interval = TRUE,
plot.points = TRUE,
jitter = 0.05,
main.title = "Effect plot",
y.label = "Conspiracy belief",
x.label = "Procedural justice")
dev.off()
## png
## 2
#Effect_plot: index_identity_judgements
png("./Regression_Tables/effectplots/effect_plot_index_identity_judgements.png",
width = 2000, height = 1800,type = "cairo",res=300)
effect_plot(m1_justice, pred = index_identity_judgements,
interval = TRUE,
plot.points = TRUE,
jitter = 0.05,
main.title = "Effect plot",
y.label = "Conspiracy belief",
x.label = "Identity judgments")
dev.off()
## png
## 2
#Effect_plot: index_literacy_level
png("./Regression_Tables/effectplots/effect_plot_index_literacy_level.png",
width = 2000, height = 1800,type = "cairo",res=300)
effect_plot(m1_justice, pred = index_literacy_level,
interval = TRUE,
plot.points = TRUE,
jitter = 0.05,
main.title = "Effect plot",
y.label = "Conspiracy belief",
x.label = "Literacy level")
dev.off()
## png
## 2
#Regression graph of full model
png("./Regression_Tables/effectplots/Regression_graph_full_model.png",
width = 2000, height = 1800,type = "cairo",res=300)
plot_summs(m1_justice,
scale=TRUE,
exp = FALSE)
dev.off()
## png
## 2
#Regression graph of full model_subscales
png("./Regression_Tables/effectplots/Regression_graph_full_model_subscales.png",
width = 2000, height = 1800,type = "cairo",res=300)
plot_summs(m1_justice_subscales,
scale=TRUE,
exp = FALSE)
dev.off()
## png
## 2
T tests
# T-tests -----------------------------------------------------------------
###GENDER
#Ttest for gender: Only man and woman
#First cheking number of participants in each category
table(def_justice$gender)
##
## Man Non-binary Prefer not to say Woman
## 224 7 4 158
#Creating dichotomous gender variable variable for the t test
def_justice_gender_binary <- def_justice %>%
filter(gender=="Man"| gender=="Woman")
#Droping levels
def_justice_gender_binary$gender <- droplevels(def_justice_gender_binary$gender)
#Ttest
def_justice_gender_binary %>%
select(index_conspiracy_belief, gender) %>%
tbl_summary(
by = gender,
statistic =
list(
all_continuous() ~ "{mean} ({sd})",
all_dichotomous() ~ "{p}%"
),
missing = "no"
) %>%
add_n() %>%
add_difference() %>%
modify_header(statistic ~ "**Test Statistic**") %>%
modify_fmt_fun(statistic ~ style_sigfig) %>%
as_gt() %>%
gt::tab_header(
title = gt::md("**T test: Conspiracy belief**"),
subtitle = gt::md("By gender")) %>%
gtsave("T_tests/ttest_table_gender.png", vwidth = 1500, vheight = 1000)
def_justice_gender_binary %>%
inference(y = index_conspiracy_belief, x = gender, statistic = "mean", type = "ht",
null = 0, alternative = "twosided", method = "theoretical")
## Response variable: numerical
## Explanatory variable: categorical (2 levels)
## n_Man = 224, y_bar_Man = 2.9557, s_Man = 1.0903
## n_Woman = 158, y_bar_Woman = 2.9367, s_Woman = 1.1267
## H0: mu_Man = mu_Woman
## HA: mu_Man != mu_Woman
## t = 0.1647, df = 157
## p_value = 0.8694
#Distribution index_conspiracy_belief by gender
histogram_t_test_def_justice_gender_binary<- def_justice_gender_binary %>%
ggplot(aes(x=index_conspiracy_belief))+
geom_histogram(fill="#9b19f5")+
labs(title="Conspiracy beliefs",
x="Conspiracy beliefs index",
y = "Count",
fill="Type")+
theme_classic()+
theme(axis.text.x = element_text( size = 13, angle = 0,hjust = 0.5,vjust = 0.5),
axis.title.y = element_text( size = 15),
axis.title.x = element_text( size = 15),
plot.title = element_text(size = 20,face = "bold"),
plot.subtitle = element_text(size = 15),
legend.title = element_text(size = 15),
legend.text = element_text(size = 13))+
geom_vline(aes(xintercept = mean(index_conspiracy_belief)),col='red',size=1)+
facet_wrap(~gender)
ggsave(plot = histogram_t_test_def_justice_gender_binary, filename = "./T_tests/histogram_t_test_def_justice_gender_binary.png",
width = 11,
height = 7,
type = "cairo",
dpi = "retina")
###Majority_Minority
#Ttest
def_justice%>%
select(index_conspiracy_belief, group_may_min) %>%
tbl_summary(
by = group_may_min,
statistic =
list(
all_continuous() ~ "{mean} ({sd})",
all_dichotomous() ~ "{p}%"
),
missing = "no"
) %>%
add_n() %>%
add_difference() %>%
modify_header(statistic ~ "**Test Statistic**") %>%
modify_fmt_fun(statistic ~ style_sigfig) %>%
as_gt() %>%
gt::tab_header(
title = gt::md("**T test: Conspiracy belief**"),
subtitle = gt::md("By ethnic group")) %>%
gtsave("T_tests/ttest_table_majority_minority.png", vwidth = 1500, vheight = 1000)
def_justice %>%
inference(y = index_conspiracy_belief, x = group_may_min, statistic = "mean", type = "ht",
null = 0, alternative = "twosided", method = "theoretical")
## Response variable: numerical
## Explanatory variable: categorical (2 levels)
## n_Mayority = 202, y_bar_Mayority = 2.8218, s_Mayority = 1.0013
## n_Minority = 191, y_bar_Minority = 3.0812, s_Minority = 1.1963
## H0: mu_Mayority = mu_Minority
## HA: mu_Mayority != mu_Minority
## t = -2.3239, df = 190
## p_value = 0.0212
#Distribution index_conspiracy_belief by gender
histogram_t_test_def_justice_majority_minority <- def_justice_gender_binary %>%
ggplot(aes(x=index_conspiracy_belief))+
geom_histogram(fill="#9b19f5")+
labs(title="Conspiracy beliefs",
x="Conspiracy beliefs index",
y = "Count",
fill="Type")+
theme_classic()+
theme(axis.text.x = element_text( size = 13, angle = 0,hjust = 0.5,vjust = 0.5),
axis.title.y = element_text( size = 15),
axis.title.x = element_text( size = 15),
plot.title = element_text(size = 20,face = "bold"),
plot.subtitle = element_text(size = 15),
legend.title = element_text(size = 15),
legend.text = element_text(size = 13))+
geom_vline(aes(xintercept = mean(index_conspiracy_belief)),col='red',size=1)+
facet_wrap(~group_may_min)
ggsave(plot = histogram_t_test_def_justice_majority_minority, filename = "./T_tests/histogram_t_test_def_justice_majority_minority.png",
width = 11,
height = 7,
type = "cairo",
dpi = "retina")
Cronbach’s Alpha
# Cronbach's Alpha -------------------------------------------------------------------
#procedural_justice
alpha_procedural_justice <- justice_recoded_merged %>%
select(the_rules_dictate_that_decisions_should_be_fair_and_unbiased:
the_rules_respect_my_rights_as_a_person)
#Shorter output
cronbach.alpha(alpha_procedural_justice, CI=TRUE, standardized=TRUE)
##
## Standardized Cronbach's alpha for the 'alpha_procedural_justice' data-set
##
## Items: 14
## Sample units: 393
## alpha: 0.958
##
## Bootstrap 95% CI based on 1000 samples
## 2.5% 97.5%
## 0.952 0.964
#Complete Output
alpha(alpha_procedural_justice)
##
## Reliability analysis
## Call: alpha(x = alpha_procedural_justice)
##
## raw_alpha std.alpha G6(smc) average_r S/N ase mean sd median_r
## 0.96 0.96 0.97 0.62 23 0.0031 2.9 1.1 0.64
##
## lower alpha upper 95% confidence boundaries
## 0.95 0.96 0.96
##
## Reliability if an item is dropped:
## raw_alpha
## the_rules_dictate_that_decisions_should_be_fair_and_unbiased 0.96
## the_rules_and_procedures_are_applied_consistently_across_people_and_situations 0.96
## the_rules_ensure_that_decisions_are_made_based_on_facts_not_personal_biases_and_opinions 0.96
## the_rules_and_procedures_in_the_us_society_are_equally_fair_to_everyone 0.95
## decisions_are_consistent_across_people_and_situations 0.95
## decisions_are_made_based_on_facts_not_their_personal_biases_and_opinions 0.95
## decisions_are_equally_fair_to_everyone 0.95
## the_rules_lead_to_fair_treatment_when_decisions_are_being_made 0.95
## the_rules_lead_to_fair_treatment_when_decisions_are_being_implemented 0.95
## the_rules_require_that_i_get_an_honest_explanation_for_how_decisions_are_made 0.96
## my_views_are_considered_when_rules_are_being_applied 0.96
## the_rules_ensure_that_my_needs_will_be_taken_into_account 0.95
## the_rules_respect_my_rights_as_a_citizen 0.95
## the_rules_respect_my_rights_as_a_person 0.95
## std.alpha
## the_rules_dictate_that_decisions_should_be_fair_and_unbiased 0.96
## the_rules_and_procedures_are_applied_consistently_across_people_and_situations 0.96
## the_rules_ensure_that_decisions_are_made_based_on_facts_not_personal_biases_and_opinions 0.96
## the_rules_and_procedures_in_the_us_society_are_equally_fair_to_everyone 0.95
## decisions_are_consistent_across_people_and_situations 0.95
## decisions_are_made_based_on_facts_not_their_personal_biases_and_opinions 0.95
## decisions_are_equally_fair_to_everyone 0.95
## the_rules_lead_to_fair_treatment_when_decisions_are_being_made 0.95
## the_rules_lead_to_fair_treatment_when_decisions_are_being_implemented 0.95
## the_rules_require_that_i_get_an_honest_explanation_for_how_decisions_are_made 0.96
## my_views_are_considered_when_rules_are_being_applied 0.96
## the_rules_ensure_that_my_needs_will_be_taken_into_account 0.96
## the_rules_respect_my_rights_as_a_citizen 0.95
## the_rules_respect_my_rights_as_a_person 0.95
## G6(smc)
## the_rules_dictate_that_decisions_should_be_fair_and_unbiased 0.97
## the_rules_and_procedures_are_applied_consistently_across_people_and_situations 0.97
## the_rules_ensure_that_decisions_are_made_based_on_facts_not_personal_biases_and_opinions 0.97
## the_rules_and_procedures_in_the_us_society_are_equally_fair_to_everyone 0.97
## decisions_are_consistent_across_people_and_situations 0.97
## decisions_are_made_based_on_facts_not_their_personal_biases_and_opinions 0.97
## decisions_are_equally_fair_to_everyone 0.97
## the_rules_lead_to_fair_treatment_when_decisions_are_being_made 0.97
## the_rules_lead_to_fair_treatment_when_decisions_are_being_implemented 0.97
## the_rules_require_that_i_get_an_honest_explanation_for_how_decisions_are_made 0.97
## my_views_are_considered_when_rules_are_being_applied 0.97
## the_rules_ensure_that_my_needs_will_be_taken_into_account 0.97
## the_rules_respect_my_rights_as_a_citizen 0.96
## the_rules_respect_my_rights_as_a_person 0.96
## average_r
## the_rules_dictate_that_decisions_should_be_fair_and_unbiased 0.66
## the_rules_and_procedures_are_applied_consistently_across_people_and_situations 0.62
## the_rules_ensure_that_decisions_are_made_based_on_facts_not_personal_biases_and_opinions 0.62
## the_rules_and_procedures_in_the_us_society_are_equally_fair_to_everyone 0.61
## decisions_are_consistent_across_people_and_situations 0.61
## decisions_are_made_based_on_facts_not_their_personal_biases_and_opinions 0.61
## decisions_are_equally_fair_to_everyone 0.61
## the_rules_lead_to_fair_treatment_when_decisions_are_being_made 0.61
## the_rules_lead_to_fair_treatment_when_decisions_are_being_implemented 0.61
## the_rules_require_that_i_get_an_honest_explanation_for_how_decisions_are_made 0.63
## my_views_are_considered_when_rules_are_being_applied 0.63
## the_rules_ensure_that_my_needs_will_be_taken_into_account 0.62
## the_rules_respect_my_rights_as_a_citizen 0.62
## the_rules_respect_my_rights_as_a_person 0.62
## S/N
## the_rules_dictate_that_decisions_should_be_fair_and_unbiased 26
## the_rules_and_procedures_are_applied_consistently_across_people_and_situations 21
## the_rules_ensure_that_decisions_are_made_based_on_facts_not_personal_biases_and_opinions 21
## the_rules_and_procedures_in_the_us_society_are_equally_fair_to_everyone 21
## decisions_are_consistent_across_people_and_situations 21
## decisions_are_made_based_on_facts_not_their_personal_biases_and_opinions 21
## decisions_are_equally_fair_to_everyone 21
## the_rules_lead_to_fair_treatment_when_decisions_are_being_made 20
## the_rules_lead_to_fair_treatment_when_decisions_are_being_implemented 20
## the_rules_require_that_i_get_an_honest_explanation_for_how_decisions_are_made 22
## my_views_are_considered_when_rules_are_being_applied 22
## the_rules_ensure_that_my_needs_will_be_taken_into_account 21
## the_rules_respect_my_rights_as_a_citizen 21
## the_rules_respect_my_rights_as_a_person 21
## alpha se
## the_rules_dictate_that_decisions_should_be_fair_and_unbiased 0.0029
## the_rules_and_procedures_are_applied_consistently_across_people_and_situations 0.0033
## the_rules_ensure_that_decisions_are_made_based_on_facts_not_personal_biases_and_opinions 0.0033
## the_rules_and_procedures_in_the_us_society_are_equally_fair_to_everyone 0.0035
## decisions_are_consistent_across_people_and_situations 0.0034
## decisions_are_made_based_on_facts_not_their_personal_biases_and_opinions 0.0035
## decisions_are_equally_fair_to_everyone 0.0035
## the_rules_lead_to_fair_treatment_when_decisions_are_being_made 0.0035
## the_rules_lead_to_fair_treatment_when_decisions_are_being_implemented 0.0035
## the_rules_require_that_i_get_an_honest_explanation_for_how_decisions_are_made 0.0033
## my_views_are_considered_when_rules_are_being_applied 0.0033
## the_rules_ensure_that_my_needs_will_be_taken_into_account 0.0033
## the_rules_respect_my_rights_as_a_citizen 0.0034
## the_rules_respect_my_rights_as_a_person 0.0034
## var.r
## the_rules_dictate_that_decisions_should_be_fair_and_unbiased 0.0087
## the_rules_and_procedures_are_applied_consistently_across_people_and_situations 0.0206
## the_rules_ensure_that_decisions_are_made_based_on_facts_not_personal_biases_and_opinions 0.0219
## the_rules_and_procedures_in_the_us_society_are_equally_fair_to_everyone 0.0195
## decisions_are_consistent_across_people_and_situations 0.0188
## decisions_are_made_based_on_facts_not_their_personal_biases_and_opinions 0.0198
## decisions_are_equally_fair_to_everyone 0.0186
## the_rules_lead_to_fair_treatment_when_decisions_are_being_made 0.0197
## the_rules_lead_to_fair_treatment_when_decisions_are_being_implemented 0.0196
## the_rules_require_that_i_get_an_honest_explanation_for_how_decisions_are_made 0.0212
## my_views_are_considered_when_rules_are_being_applied 0.0201
## the_rules_ensure_that_my_needs_will_be_taken_into_account 0.0204
## the_rules_respect_my_rights_as_a_citizen 0.0202
## the_rules_respect_my_rights_as_a_person 0.0200
## med.r
## the_rules_dictate_that_decisions_should_be_fair_and_unbiased 0.66
## the_rules_and_procedures_are_applied_consistently_across_people_and_situations 0.64
## the_rules_ensure_that_decisions_are_made_based_on_facts_not_personal_biases_and_opinions 0.64
## the_rules_and_procedures_in_the_us_society_are_equally_fair_to_everyone 0.64
## decisions_are_consistent_across_people_and_situations 0.64
## decisions_are_made_based_on_facts_not_their_personal_biases_and_opinions 0.63
## decisions_are_equally_fair_to_everyone 0.64
## the_rules_lead_to_fair_treatment_when_decisions_are_being_made 0.63
## the_rules_lead_to_fair_treatment_when_decisions_are_being_implemented 0.63
## the_rules_require_that_i_get_an_honest_explanation_for_how_decisions_are_made 0.65
## my_views_are_considered_when_rules_are_being_applied 0.65
## the_rules_ensure_that_my_needs_will_be_taken_into_account 0.64
## the_rules_respect_my_rights_as_a_citizen 0.65
## the_rules_respect_my_rights_as_a_person 0.64
##
## Item statistics
## n
## the_rules_dictate_that_decisions_should_be_fair_and_unbiased 393
## the_rules_and_procedures_are_applied_consistently_across_people_and_situations 393
## the_rules_ensure_that_decisions_are_made_based_on_facts_not_personal_biases_and_opinions 393
## the_rules_and_procedures_in_the_us_society_are_equally_fair_to_everyone 393
## decisions_are_consistent_across_people_and_situations 393
## decisions_are_made_based_on_facts_not_their_personal_biases_and_opinions 393
## decisions_are_equally_fair_to_everyone 393
## the_rules_lead_to_fair_treatment_when_decisions_are_being_made 393
## the_rules_lead_to_fair_treatment_when_decisions_are_being_implemented 393
## the_rules_require_that_i_get_an_honest_explanation_for_how_decisions_are_made 393
## my_views_are_considered_when_rules_are_being_applied 393
## the_rules_ensure_that_my_needs_will_be_taken_into_account 393
## the_rules_respect_my_rights_as_a_citizen 393
## the_rules_respect_my_rights_as_a_person 393
## raw.r
## the_rules_dictate_that_decisions_should_be_fair_and_unbiased 0.50
## the_rules_and_procedures_are_applied_consistently_across_people_and_situations 0.80
## the_rules_ensure_that_decisions_are_made_based_on_facts_not_personal_biases_and_opinions 0.79
## the_rules_and_procedures_in_the_us_society_are_equally_fair_to_everyone 0.86
## decisions_are_consistent_across_people_and_situations 0.85
## decisions_are_made_based_on_facts_not_their_personal_biases_and_opinions 0.86
## decisions_are_equally_fair_to_everyone 0.86
## the_rules_lead_to_fair_treatment_when_decisions_are_being_made 0.89
## the_rules_lead_to_fair_treatment_when_decisions_are_being_implemented 0.88
## the_rules_require_that_i_get_an_honest_explanation_for_how_decisions_are_made 0.76
## my_views_are_considered_when_rules_are_being_applied 0.77
## the_rules_ensure_that_my_needs_will_be_taken_into_account 0.80
## the_rules_respect_my_rights_as_a_citizen 0.82
## the_rules_respect_my_rights_as_a_person 0.82
## std.r
## the_rules_dictate_that_decisions_should_be_fair_and_unbiased 0.50
## the_rules_and_procedures_are_applied_consistently_across_people_and_situations 0.79
## the_rules_ensure_that_decisions_are_made_based_on_facts_not_personal_biases_and_opinions 0.79
## the_rules_and_procedures_in_the_us_society_are_equally_fair_to_everyone 0.86
## decisions_are_consistent_across_people_and_situations 0.85
## decisions_are_made_based_on_facts_not_their_personal_biases_and_opinions 0.86
## decisions_are_equally_fair_to_everyone 0.86
## the_rules_lead_to_fair_treatment_when_decisions_are_being_made 0.89
## the_rules_lead_to_fair_treatment_when_decisions_are_being_implemented 0.88
## the_rules_require_that_i_get_an_honest_explanation_for_how_decisions_are_made 0.76
## my_views_are_considered_when_rules_are_being_applied 0.77
## the_rules_ensure_that_my_needs_will_be_taken_into_account 0.80
## the_rules_respect_my_rights_as_a_citizen 0.82
## the_rules_respect_my_rights_as_a_person 0.82
## r.cor
## the_rules_dictate_that_decisions_should_be_fair_and_unbiased 0.45
## the_rules_and_procedures_are_applied_consistently_across_people_and_situations 0.78
## the_rules_ensure_that_decisions_are_made_based_on_facts_not_personal_biases_and_opinions 0.77
## the_rules_and_procedures_in_the_us_society_are_equally_fair_to_everyone 0.85
## decisions_are_consistent_across_people_and_situations 0.85
## decisions_are_made_based_on_facts_not_their_personal_biases_and_opinions 0.86
## decisions_are_equally_fair_to_everyone 0.86
## the_rules_lead_to_fair_treatment_when_decisions_are_being_made 0.89
## the_rules_lead_to_fair_treatment_when_decisions_are_being_implemented 0.88
## the_rules_require_that_i_get_an_honest_explanation_for_how_decisions_are_made 0.74
## my_views_are_considered_when_rules_are_being_applied 0.76
## the_rules_ensure_that_my_needs_will_be_taken_into_account 0.79
## the_rules_respect_my_rights_as_a_citizen 0.82
## the_rules_respect_my_rights_as_a_person 0.82
## r.drop
## the_rules_dictate_that_decisions_should_be_fair_and_unbiased 0.43
## the_rules_and_procedures_are_applied_consistently_across_people_and_situations 0.76
## the_rules_ensure_that_decisions_are_made_based_on_facts_not_personal_biases_and_opinions 0.76
## the_rules_and_procedures_in_the_us_society_are_equally_fair_to_everyone 0.83
## decisions_are_consistent_across_people_and_situations 0.82
## decisions_are_made_based_on_facts_not_their_personal_biases_and_opinions 0.84
## decisions_are_equally_fair_to_everyone 0.83
## the_rules_lead_to_fair_treatment_when_decisions_are_being_made 0.87
## the_rules_lead_to_fair_treatment_when_decisions_are_being_implemented 0.85
## the_rules_require_that_i_get_an_honest_explanation_for_how_decisions_are_made 0.72
## my_views_are_considered_when_rules_are_being_applied 0.73
## the_rules_ensure_that_my_needs_will_be_taken_into_account 0.77
## the_rules_respect_my_rights_as_a_citizen 0.78
## the_rules_respect_my_rights_as_a_person 0.79
## mean
## the_rules_dictate_that_decisions_should_be_fair_and_unbiased 4.2
## the_rules_and_procedures_are_applied_consistently_across_people_and_situations 2.7
## the_rules_ensure_that_decisions_are_made_based_on_facts_not_personal_biases_and_opinions 3.1
## the_rules_and_procedures_in_the_us_society_are_equally_fair_to_everyone 2.5
## decisions_are_consistent_across_people_and_situations 2.4
## decisions_are_made_based_on_facts_not_their_personal_biases_and_opinions 2.7
## decisions_are_equally_fair_to_everyone 2.4
## the_rules_lead_to_fair_treatment_when_decisions_are_being_made 2.8
## the_rules_lead_to_fair_treatment_when_decisions_are_being_implemented 2.8
## the_rules_require_that_i_get_an_honest_explanation_for_how_decisions_are_made 3.0
## my_views_are_considered_when_rules_are_being_applied 2.8
## the_rules_ensure_that_my_needs_will_be_taken_into_account 2.8
## the_rules_respect_my_rights_as_a_citizen 3.4
## the_rules_respect_my_rights_as_a_person 3.3
## sd
## the_rules_dictate_that_decisions_should_be_fair_and_unbiased 1.3
## the_rules_and_procedures_are_applied_consistently_across_people_and_situations 1.5
## the_rules_ensure_that_decisions_are_made_based_on_facts_not_personal_biases_and_opinions 1.4
## the_rules_and_procedures_in_the_us_society_are_equally_fair_to_everyone 1.4
## decisions_are_consistent_across_people_and_situations 1.4
## decisions_are_made_based_on_facts_not_their_personal_biases_and_opinions 1.3
## decisions_are_equally_fair_to_everyone 1.3
## the_rules_lead_to_fair_treatment_when_decisions_are_being_made 1.3
## the_rules_lead_to_fair_treatment_when_decisions_are_being_implemented 1.3
## the_rules_require_that_i_get_an_honest_explanation_for_how_decisions_are_made 1.4
## my_views_are_considered_when_rules_are_being_applied 1.3
## the_rules_ensure_that_my_needs_will_be_taken_into_account 1.3
## the_rules_respect_my_rights_as_a_citizen 1.3
## the_rules_respect_my_rights_as_a_person 1.4
##
## Non missing response frequency for each item
## 1
## the_rules_dictate_that_decisions_should_be_fair_and_unbiased 0.03
## the_rules_and_procedures_are_applied_consistently_across_people_and_situations 0.26
## the_rules_ensure_that_decisions_are_made_based_on_facts_not_personal_biases_and_opinions 0.16
## the_rules_and_procedures_in_the_us_society_are_equally_fair_to_everyone 0.32
## decisions_are_consistent_across_people_and_situations 0.32
## decisions_are_made_based_on_facts_not_their_personal_biases_and_opinions 0.20
## decisions_are_equally_fair_to_everyone 0.31
## the_rules_lead_to_fair_treatment_when_decisions_are_being_made 0.15
## the_rules_lead_to_fair_treatment_when_decisions_are_being_implemented 0.17
## the_rules_require_that_i_get_an_honest_explanation_for_how_decisions_are_made 0.16
## my_views_are_considered_when_rules_are_being_applied 0.18
## the_rules_ensure_that_my_needs_will_be_taken_into_account 0.19
## the_rules_respect_my_rights_as_a_citizen 0.11
## the_rules_respect_my_rights_as_a_person 0.13
## 2
## the_rules_dictate_that_decisions_should_be_fair_and_unbiased 0.11
## the_rules_and_procedures_are_applied_consistently_across_people_and_situations 0.31
## the_rules_ensure_that_decisions_are_made_based_on_facts_not_personal_biases_and_opinions 0.21
## the_rules_and_procedures_in_the_us_society_are_equally_fair_to_everyone 0.27
## decisions_are_consistent_across_people_and_situations 0.28
## decisions_are_made_based_on_facts_not_their_personal_biases_and_opinions 0.30
## decisions_are_equally_fair_to_everyone 0.29
## the_rules_lead_to_fair_treatment_when_decisions_are_being_made 0.32
## the_rules_lead_to_fair_treatment_when_decisions_are_being_implemented 0.31
## the_rules_require_that_i_get_an_honest_explanation_for_how_decisions_are_made 0.22
## my_views_are_considered_when_rules_are_being_applied 0.27
## the_rules_ensure_that_my_needs_will_be_taken_into_account 0.25
## the_rules_respect_my_rights_as_a_citizen 0.16
## the_rules_respect_my_rights_as_a_person 0.19
## 3
## the_rules_dictate_that_decisions_should_be_fair_and_unbiased 0.12
## the_rules_and_procedures_are_applied_consistently_across_people_and_situations 0.14
## the_rules_ensure_that_decisions_are_made_based_on_facts_not_personal_biases_and_opinions 0.23
## the_rules_and_procedures_in_the_us_society_are_equally_fair_to_everyone 0.16
## decisions_are_consistent_across_people_and_situations 0.16
## decisions_are_made_based_on_facts_not_their_personal_biases_and_opinions 0.24
## decisions_are_equally_fair_to_everyone 0.18
## the_rules_lead_to_fair_treatment_when_decisions_are_being_made 0.22
## the_rules_lead_to_fair_treatment_when_decisions_are_being_implemented 0.22
## the_rules_require_that_i_get_an_honest_explanation_for_how_decisions_are_made 0.21
## my_views_are_considered_when_rules_are_being_applied 0.24
## the_rules_ensure_that_my_needs_will_be_taken_into_account 0.27
## the_rules_respect_my_rights_as_a_citizen 0.24
## the_rules_respect_my_rights_as_a_person 0.21
## 4
## the_rules_dictate_that_decisions_should_be_fair_and_unbiased 0.28
## the_rules_and_procedures_are_applied_consistently_across_people_and_situations 0.12
## the_rules_ensure_that_decisions_are_made_based_on_facts_not_personal_biases_and_opinions 0.22
## the_rules_and_procedures_in_the_us_society_are_equally_fair_to_everyone 0.14
## decisions_are_consistent_across_people_and_situations 0.14
## decisions_are_made_based_on_facts_not_their_personal_biases_and_opinions 0.15
## decisions_are_equally_fair_to_everyone 0.12
## the_rules_lead_to_fair_treatment_when_decisions_are_being_made 0.21
## the_rules_lead_to_fair_treatment_when_decisions_are_being_implemented 0.20
## the_rules_require_that_i_get_an_honest_explanation_for_how_decisions_are_made 0.24
## my_views_are_considered_when_rules_are_being_applied 0.19
## the_rules_ensure_that_my_needs_will_be_taken_into_account 0.18
## the_rules_respect_my_rights_as_a_citizen 0.27
## the_rules_respect_my_rights_as_a_person 0.27
## 5
## the_rules_dictate_that_decisions_should_be_fair_and_unbiased 0.30
## the_rules_and_procedures_are_applied_consistently_across_people_and_situations 0.12
## the_rules_ensure_that_decisions_are_made_based_on_facts_not_personal_biases_and_opinions 0.14
## the_rules_and_procedures_in_the_us_society_are_equally_fair_to_everyone 0.09
## decisions_are_consistent_across_people_and_situations 0.07
## decisions_are_made_based_on_facts_not_their_personal_biases_and_opinions 0.09
## decisions_are_equally_fair_to_everyone 0.07
## the_rules_lead_to_fair_treatment_when_decisions_are_being_made 0.10
## the_rules_lead_to_fair_treatment_when_decisions_are_being_implemented 0.09
## the_rules_require_that_i_get_an_honest_explanation_for_how_decisions_are_made 0.14
## my_views_are_considered_when_rules_are_being_applied 0.10
## the_rules_ensure_that_my_needs_will_be_taken_into_account 0.09
## the_rules_respect_my_rights_as_a_citizen 0.18
## the_rules_respect_my_rights_as_a_person 0.17
## 6
## the_rules_dictate_that_decisions_should_be_fair_and_unbiased 0.17
## the_rules_and_procedures_are_applied_consistently_across_people_and_situations 0.04
## the_rules_ensure_that_decisions_are_made_based_on_facts_not_personal_biases_and_opinions 0.04
## the_rules_and_procedures_in_the_us_society_are_equally_fair_to_everyone 0.02
## decisions_are_consistent_across_people_and_situations 0.02
## decisions_are_made_based_on_facts_not_their_personal_biases_and_opinions 0.03
## decisions_are_equally_fair_to_everyone 0.02
## the_rules_lead_to_fair_treatment_when_decisions_are_being_made 0.01
## the_rules_lead_to_fair_treatment_when_decisions_are_being_implemented 0.01
## the_rules_require_that_i_get_an_honest_explanation_for_how_decisions_are_made 0.03
## my_views_are_considered_when_rules_are_being_applied 0.02
## the_rules_ensure_that_my_needs_will_be_taken_into_account 0.02
## the_rules_respect_my_rights_as_a_citizen 0.04
## the_rules_respect_my_rights_as_a_person 0.04
## miss
## the_rules_dictate_that_decisions_should_be_fair_and_unbiased 0
## the_rules_and_procedures_are_applied_consistently_across_people_and_situations 0
## the_rules_ensure_that_decisions_are_made_based_on_facts_not_personal_biases_and_opinions 0
## the_rules_and_procedures_in_the_us_society_are_equally_fair_to_everyone 0
## decisions_are_consistent_across_people_and_situations 0
## decisions_are_made_based_on_facts_not_their_personal_biases_and_opinions 0
## decisions_are_equally_fair_to_everyone 0
## the_rules_lead_to_fair_treatment_when_decisions_are_being_made 0
## the_rules_lead_to_fair_treatment_when_decisions_are_being_implemented 0
## the_rules_require_that_i_get_an_honest_explanation_for_how_decisions_are_made 0
## my_views_are_considered_when_rules_are_being_applied 0
## the_rules_ensure_that_my_needs_will_be_taken_into_account 0
## the_rules_respect_my_rights_as_a_citizen 0
## the_rules_respect_my_rights_as_a_person 0
out_alpha_procedural_justice <- psych::alpha(alpha_procedural_justice)
capture.output(out_alpha_procedural_justice,file = "Cronbach_alpha/alpha_procedural_justice.txt")
#identity_judgements
alpha_identity_judgements<- justice_recoded_merged %>%
select(when_i_talk_about_the_us_society_i_usually_say_we_rather_than_they:
appreciate_your_unique_contributions)
#Shorter output
cronbach.alpha(alpha_identity_judgements, CI=TRUE, standardized=TRUE)
##
## Standardized Cronbach's alpha for the 'alpha_identity_judgements' data-set
##
## Items: 11
## Sample units: 393
## alpha: 0.841
##
## Bootstrap 95% CI based on 1000 samples
## 2.5% 97.5%
## 0.817 0.862
#Complete Output
alpha(alpha_identity_judgements)
## Some items ( others_leave_me_out_of_the_group ) were negatively correlated with the total scale and
## probably should be reversed.
## To do this, run the function again with the 'check.keys=TRUE' option
##
## Reliability analysis
## Call: alpha(x = alpha_identity_judgements)
##
## raw_alpha std.alpha G6(smc) average_r S/N ase mean sd median_r
## 0.84 0.84 0.9 0.33 5.3 0.011 3.4 0.86 0.35
##
## lower alpha upper 95% confidence boundaries
## 0.82 0.84 0.87
##
## Reliability if an item is dropped:
## raw_alpha
## when_i_talk_about_the_us_society_i_usually_say_we_rather_than_they 0.83
## i_have_a_sense_that_i_personally_belong_in_the_us_society 0.82
## i_feel_like_an_important_part_of_the_us_society 0.81
## i_feel_connected_to_the_people_around_me 0.83
## i_am_close_to_other_people_within_the_us_society_regardless_of_the_community_to_which_they_belong 0.83
## others_leave_me_out_of_the_group 0.89
## i_feel_proud_to_be_a_part_of_the_us_society 0.82
## my_community_group_is_highly_respected_within_the_us_society_community_group_american_indian_or_alaska_native_asian_black_or_african_american_latinx_native_hawaiian_or_other_pacific_islander_w 0.84
## value_you_as_a_member_and_respect_your_ideas 0.82
## value_what_you_contribute_to_society_respect_the_work_you_do 0.83
## appreciate_your_unique_contributions 0.82
## std.alpha
## when_i_talk_about_the_us_society_i_usually_say_we_rather_than_they 0.82
## i_have_a_sense_that_i_personally_belong_in_the_us_society 0.81
## i_feel_like_an_important_part_of_the_us_society 0.81
## i_feel_connected_to_the_people_around_me 0.82
## i_am_close_to_other_people_within_the_us_society_regardless_of_the_community_to_which_they_belong 0.82
## others_leave_me_out_of_the_group 0.89
## i_feel_proud_to_be_a_part_of_the_us_society 0.82
## my_community_group_is_highly_respected_within_the_us_society_community_group_american_indian_or_alaska_native_asian_black_or_african_american_latinx_native_hawaiian_or_other_pacific_islander_w 0.83
## value_you_as_a_member_and_respect_your_ideas 0.82
## value_what_you_contribute_to_society_respect_the_work_you_do 0.82
## appreciate_your_unique_contributions 0.82
## G6(smc)
## when_i_talk_about_the_us_society_i_usually_say_we_rather_than_they 0.88
## i_have_a_sense_that_i_personally_belong_in_the_us_society 0.87
## i_feel_like_an_important_part_of_the_us_society 0.88
## i_feel_connected_to_the_people_around_me 0.88
## i_am_close_to_other_people_within_the_us_society_regardless_of_the_community_to_which_they_belong 0.88
## others_leave_me_out_of_the_group 0.92
## i_feel_proud_to_be_a_part_of_the_us_society 0.88
## my_community_group_is_highly_respected_within_the_us_society_community_group_american_indian_or_alaska_native_asian_black_or_african_american_latinx_native_hawaiian_or_other_pacific_islander_w 0.90
## value_you_as_a_member_and_respect_your_ideas 0.87
## value_what_you_contribute_to_society_respect_the_work_you_do 0.88
## appreciate_your_unique_contributions 0.87
## average_r
## when_i_talk_about_the_us_society_i_usually_say_we_rather_than_they 0.32
## i_have_a_sense_that_i_personally_belong_in_the_us_society 0.30
## i_feel_like_an_important_part_of_the_us_society 0.30
## i_feel_connected_to_the_people_around_me 0.32
## i_am_close_to_other_people_within_the_us_society_regardless_of_the_community_to_which_they_belong 0.32
## others_leave_me_out_of_the_group 0.45
## i_feel_proud_to_be_a_part_of_the_us_society 0.31
## my_community_group_is_highly_respected_within_the_us_society_community_group_american_indian_or_alaska_native_asian_black_or_african_american_latinx_native_hawaiian_or_other_pacific_islander_w 0.34
## value_you_as_a_member_and_respect_your_ideas 0.31
## value_what_you_contribute_to_society_respect_the_work_you_do 0.31
## appreciate_your_unique_contributions 0.31
## S/N
## when_i_talk_about_the_us_society_i_usually_say_we_rather_than_they 4.7
## i_have_a_sense_that_i_personally_belong_in_the_us_society 4.4
## i_feel_like_an_important_part_of_the_us_society 4.3
## i_feel_connected_to_the_people_around_me 4.6
## i_am_close_to_other_people_within_the_us_society_regardless_of_the_community_to_which_they_belong 4.7
## others_leave_me_out_of_the_group 8.1
## i_feel_proud_to_be_a_part_of_the_us_society 4.4
## my_community_group_is_highly_respected_within_the_us_society_community_group_american_indian_or_alaska_native_asian_black_or_african_american_latinx_native_hawaiian_or_other_pacific_islander_w 5.0
## value_you_as_a_member_and_respect_your_ideas 4.4
## value_what_you_contribute_to_society_respect_the_work_you_do 4.6
## appreciate_your_unique_contributions 4.5
## alpha se
## when_i_talk_about_the_us_society_i_usually_say_we_rather_than_they 0.0119
## i_have_a_sense_that_i_personally_belong_in_the_us_society 0.0127
## i_feel_like_an_important_part_of_the_us_society 0.0129
## i_feel_connected_to_the_people_around_me 0.0121
## i_am_close_to_other_people_within_the_us_society_regardless_of_the_community_to_which_they_belong 0.0120
## others_leave_me_out_of_the_group 0.0085
## i_feel_proud_to_be_a_part_of_the_us_society 0.0127
## my_community_group_is_highly_respected_within_the_us_society_community_group_american_indian_or_alaska_native_asian_black_or_african_american_latinx_native_hawaiian_or_other_pacific_islander_w 0.0111
## value_you_as_a_member_and_respect_your_ideas 0.0123
## value_what_you_contribute_to_society_respect_the_work_you_do 0.0119
## appreciate_your_unique_contributions 0.0120
## var.r
## when_i_talk_about_the_us_society_i_usually_say_we_rather_than_they 0.101
## i_have_a_sense_that_i_personally_belong_in_the_us_society 0.095
## i_feel_like_an_important_part_of_the_us_society 0.093
## i_feel_connected_to_the_people_around_me 0.091
## i_am_close_to_other_people_within_the_us_society_regardless_of_the_community_to_which_they_belong 0.094
## others_leave_me_out_of_the_group 0.024
## i_feel_proud_to_be_a_part_of_the_us_society 0.097
## my_community_group_is_highly_respected_within_the_us_society_community_group_american_indian_or_alaska_native_asian_black_or_african_american_latinx_native_hawaiian_or_other_pacific_islander_w 0.106
## value_you_as_a_member_and_respect_your_ideas 0.095
## value_what_you_contribute_to_society_respect_the_work_you_do 0.096
## appreciate_your_unique_contributions 0.095
## med.r
## when_i_talk_about_the_us_society_i_usually_say_we_rather_than_they 0.35
## i_have_a_sense_that_i_personally_belong_in_the_us_society 0.34
## i_feel_like_an_important_part_of_the_us_society 0.34
## i_feel_connected_to_the_people_around_me 0.35
## i_am_close_to_other_people_within_the_us_society_regardless_of_the_community_to_which_they_belong 0.35
## others_leave_me_out_of_the_group 0.41
## i_feel_proud_to_be_a_part_of_the_us_society 0.34
## my_community_group_is_highly_respected_within_the_us_society_community_group_american_indian_or_alaska_native_asian_black_or_african_american_latinx_native_hawaiian_or_other_pacific_islander_w 0.38
## value_you_as_a_member_and_respect_your_ideas 0.35
## value_what_you_contribute_to_society_respect_the_work_you_do 0.36
## appreciate_your_unique_contributions 0.35
##
## Item statistics
## n
## when_i_talk_about_the_us_society_i_usually_say_we_rather_than_they 393
## i_have_a_sense_that_i_personally_belong_in_the_us_society 393
## i_feel_like_an_important_part_of_the_us_society 393
## i_feel_connected_to_the_people_around_me 393
## i_am_close_to_other_people_within_the_us_society_regardless_of_the_community_to_which_they_belong 393
## others_leave_me_out_of_the_group 393
## i_feel_proud_to_be_a_part_of_the_us_society 393
## my_community_group_is_highly_respected_within_the_us_society_community_group_american_indian_or_alaska_native_asian_black_or_african_american_latinx_native_hawaiian_or_other_pacific_islander_w 393
## value_you_as_a_member_and_respect_your_ideas 393
## value_what_you_contribute_to_society_respect_the_work_you_do 393
## appreciate_your_unique_contributions 393
## raw.r
## when_i_talk_about_the_us_society_i_usually_say_we_rather_than_they 0.66
## i_have_a_sense_that_i_personally_belong_in_the_us_society 0.77
## i_feel_like_an_important_part_of_the_us_society 0.79
## i_feel_connected_to_the_people_around_me 0.69
## i_am_close_to_other_people_within_the_us_society_regardless_of_the_community_to_which_they_belong 0.67
## others_leave_me_out_of_the_group -0.20
## i_feel_proud_to_be_a_part_of_the_us_society 0.76
## my_community_group_is_highly_respected_within_the_us_society_community_group_american_indian_or_alaska_native_asian_black_or_african_american_latinx_native_hawaiian_or_other_pacific_islander_w 0.56
## value_you_as_a_member_and_respect_your_ideas 0.74
## value_what_you_contribute_to_society_respect_the_work_you_do 0.69
## appreciate_your_unique_contributions 0.71
## std.r
## when_i_talk_about_the_us_society_i_usually_say_we_rather_than_they 0.66
## i_have_a_sense_that_i_personally_belong_in_the_us_society 0.77
## i_feel_like_an_important_part_of_the_us_society 0.79
## i_feel_connected_to_the_people_around_me 0.68
## i_am_close_to_other_people_within_the_us_society_regardless_of_the_community_to_which_they_belong 0.67
## others_leave_me_out_of_the_group -0.19
## i_feel_proud_to_be_a_part_of_the_us_society 0.75
## my_community_group_is_highly_respected_within_the_us_society_community_group_american_indian_or_alaska_native_asian_black_or_african_american_latinx_native_hawaiian_or_other_pacific_islander_w 0.56
## value_you_as_a_member_and_respect_your_ideas 0.75
## value_what_you_contribute_to_society_respect_the_work_you_do 0.70
## appreciate_your_unique_contributions 0.72
## r.cor
## when_i_talk_about_the_us_society_i_usually_say_we_rather_than_they 0.62
## i_have_a_sense_that_i_personally_belong_in_the_us_society 0.75
## i_feel_like_an_important_part_of_the_us_society 0.77
## i_feel_connected_to_the_people_around_me 0.66
## i_am_close_to_other_people_within_the_us_society_regardless_of_the_community_to_which_they_belong 0.64
## others_leave_me_out_of_the_group -0.32
## i_feel_proud_to_be_a_part_of_the_us_society 0.72
## my_community_group_is_highly_respected_within_the_us_society_community_group_american_indian_or_alaska_native_asian_black_or_african_american_latinx_native_hawaiian_or_other_pacific_islander_w 0.47
## value_you_as_a_member_and_respect_your_ideas 0.75
## value_what_you_contribute_to_society_respect_the_work_you_do 0.69
## appreciate_your_unique_contributions 0.72
## r.drop
## when_i_talk_about_the_us_society_i_usually_say_we_rather_than_they 0.57
## i_have_a_sense_that_i_personally_belong_in_the_us_society 0.70
## i_feel_like_an_important_part_of_the_us_society 0.72
## i_feel_connected_to_the_people_around_me 0.60
## i_am_close_to_other_people_within_the_us_society_regardless_of_the_community_to_which_they_belong 0.58
## others_leave_me_out_of_the_group -0.32
## i_feel_proud_to_be_a_part_of_the_us_society 0.68
## my_community_group_is_highly_respected_within_the_us_society_community_group_american_indian_or_alaska_native_asian_black_or_african_american_latinx_native_hawaiian_or_other_pacific_islander_w 0.44
## value_you_as_a_member_and_respect_your_ideas 0.67
## value_what_you_contribute_to_society_respect_the_work_you_do 0.60
## appreciate_your_unique_contributions 0.63
## mean
## when_i_talk_about_the_us_society_i_usually_say_we_rather_than_they 3.9
## i_have_a_sense_that_i_personally_belong_in_the_us_society 4.1
## i_feel_like_an_important_part_of_the_us_society 3.2
## i_feel_connected_to_the_people_around_me 3.8
## i_am_close_to_other_people_within_the_us_society_regardless_of_the_community_to_which_they_belong 3.6
## others_leave_me_out_of_the_group 3.0
## i_feel_proud_to_be_a_part_of_the_us_society 3.5
## my_community_group_is_highly_respected_within_the_us_society_community_group_american_indian_or_alaska_native_asian_black_or_african_american_latinx_native_hawaiian_or_other_pacific_islander_w 3.5
## value_you_as_a_member_and_respect_your_ideas 3.0
## value_what_you_contribute_to_society_respect_the_work_you_do 3.0
## appreciate_your_unique_contributions 2.9
## sd
## when_i_talk_about_the_us_society_i_usually_say_we_rather_than_they 1.4
## i_have_a_sense_that_i_personally_belong_in_the_us_society 1.4
## i_feel_like_an_important_part_of_the_us_society 1.4
## i_feel_connected_to_the_people_around_me 1.3
## i_am_close_to_other_people_within_the_us_society_regardless_of_the_community_to_which_they_belong 1.4
## others_leave_me_out_of_the_group 1.3
## i_feel_proud_to_be_a_part_of_the_us_society 1.5
## my_community_group_is_highly_respected_within_the_us_society_community_group_american_indian_or_alaska_native_asian_black_or_african_american_latinx_native_hawaiian_or_other_pacific_islander_w 1.5
## value_you_as_a_member_and_respect_your_ideas 1.3
## value_what_you_contribute_to_society_respect_the_work_you_do 1.3
## appreciate_your_unique_contributions 1.3
##
## Non missing response frequency for each item
## 1
## when_i_talk_about_the_us_society_i_usually_say_we_rather_than_they 0.07
## i_have_a_sense_that_i_personally_belong_in_the_us_society 0.07
## i_feel_like_an_important_part_of_the_us_society 0.13
## i_feel_connected_to_the_people_around_me 0.07
## i_am_close_to_other_people_within_the_us_society_regardless_of_the_community_to_which_they_belong 0.07
## others_leave_me_out_of_the_group 0.12
## i_feel_proud_to_be_a_part_of_the_us_society 0.13
## my_community_group_is_highly_respected_within_the_us_society_community_group_american_indian_or_alaska_native_asian_black_or_african_american_latinx_native_hawaiian_or_other_pacific_islander_w 0.12
## value_you_as_a_member_and_respect_your_ideas 0.14
## value_what_you_contribute_to_society_respect_the_work_you_do 0.18
## appreciate_your_unique_contributions 0.20
## 2
## when_i_talk_about_the_us_society_i_usually_say_we_rather_than_they 0.13
## i_have_a_sense_that_i_personally_belong_in_the_us_society 0.09
## i_feel_like_an_important_part_of_the_us_society 0.22
## i_feel_connected_to_the_people_around_me 0.11
## i_am_close_to_other_people_within_the_us_society_regardless_of_the_community_to_which_they_belong 0.17
## others_leave_me_out_of_the_group 0.30
## i_feel_proud_to_be_a_part_of_the_us_society 0.13
## my_community_group_is_highly_respected_within_the_us_society_community_group_american_indian_or_alaska_native_asian_black_or_african_american_latinx_native_hawaiian_or_other_pacific_islander_w 0.17
## value_you_as_a_member_and_respect_your_ideas 0.22
## value_what_you_contribute_to_society_respect_the_work_you_do 0.21
## appreciate_your_unique_contributions 0.22
## 3
## when_i_talk_about_the_us_society_i_usually_say_we_rather_than_they 0.11
## i_have_a_sense_that_i_personally_belong_in_the_us_society 0.12
## i_feel_like_an_important_part_of_the_us_society 0.21
## i_feel_connected_to_the_people_around_me 0.18
## i_am_close_to_other_people_within_the_us_society_regardless_of_the_community_to_which_they_belong 0.19
## others_leave_me_out_of_the_group 0.24
## i_feel_proud_to_be_a_part_of_the_us_society 0.22
## my_community_group_is_highly_respected_within_the_us_society_community_group_american_indian_or_alaska_native_asian_black_or_african_american_latinx_native_hawaiian_or_other_pacific_islander_w 0.18
## value_you_as_a_member_and_respect_your_ideas 0.26
## value_what_you_contribute_to_society_respect_the_work_you_do 0.20
## appreciate_your_unique_contributions 0.24
## 4
## when_i_talk_about_the_us_society_i_usually_say_we_rather_than_they 0.27
## i_have_a_sense_that_i_personally_belong_in_the_us_society 0.27
## i_feel_like_an_important_part_of_the_us_society 0.23
## i_feel_connected_to_the_people_around_me 0.30
## i_am_close_to_other_people_within_the_us_society_regardless_of_the_community_to_which_they_belong 0.27
## others_leave_me_out_of_the_group 0.21
## i_feel_proud_to_be_a_part_of_the_us_society 0.27
## my_community_group_is_highly_respected_within_the_us_society_community_group_american_indian_or_alaska_native_asian_black_or_african_american_latinx_native_hawaiian_or_other_pacific_islander_w 0.24
## value_you_as_a_member_and_respect_your_ideas 0.22
## value_what_you_contribute_to_society_respect_the_work_you_do 0.26
## appreciate_your_unique_contributions 0.21
## 5
## when_i_talk_about_the_us_society_i_usually_say_we_rather_than_they 0.28
## i_have_a_sense_that_i_personally_belong_in_the_us_society 0.30
## i_feel_like_an_important_part_of_the_us_society 0.16
## i_feel_connected_to_the_people_around_me 0.26
## i_am_close_to_other_people_within_the_us_society_regardless_of_the_community_to_which_they_belong 0.23
## others_leave_me_out_of_the_group 0.10
## i_feel_proud_to_be_a_part_of_the_us_society 0.16
## my_community_group_is_highly_respected_within_the_us_society_community_group_american_indian_or_alaska_native_asian_black_or_african_american_latinx_native_hawaiian_or_other_pacific_islander_w 0.22
## value_you_as_a_member_and_respect_your_ideas 0.16
## value_what_you_contribute_to_society_respect_the_work_you_do 0.14
## appreciate_your_unique_contributions 0.13
## 6
## when_i_talk_about_the_us_society_i_usually_say_we_rather_than_they 0.12
## i_have_a_sense_that_i_personally_belong_in_the_us_society 0.14
## i_feel_like_an_important_part_of_the_us_society 0.04
## i_feel_connected_to_the_people_around_me 0.08
## i_am_close_to_other_people_within_the_us_society_regardless_of_the_community_to_which_they_belong 0.07
## others_leave_me_out_of_the_group 0.03
## i_feel_proud_to_be_a_part_of_the_us_society 0.09
## my_community_group_is_highly_respected_within_the_us_society_community_group_american_indian_or_alaska_native_asian_black_or_african_american_latinx_native_hawaiian_or_other_pacific_islander_w 0.07
## value_you_as_a_member_and_respect_your_ideas 0.00
## value_what_you_contribute_to_society_respect_the_work_you_do 0.00
## appreciate_your_unique_contributions 0.00
## miss
## when_i_talk_about_the_us_society_i_usually_say_we_rather_than_they 0
## i_have_a_sense_that_i_personally_belong_in_the_us_society 0
## i_feel_like_an_important_part_of_the_us_society 0
## i_feel_connected_to_the_people_around_me 0
## i_am_close_to_other_people_within_the_us_society_regardless_of_the_community_to_which_they_belong 0
## others_leave_me_out_of_the_group 0
## i_feel_proud_to_be_a_part_of_the_us_society 0
## my_community_group_is_highly_respected_within_the_us_society_community_group_american_indian_or_alaska_native_asian_black_or_african_american_latinx_native_hawaiian_or_other_pacific_islander_w 0
## value_you_as_a_member_and_respect_your_ideas 0
## value_what_you_contribute_to_society_respect_the_work_you_do 0
## appreciate_your_unique_contributions 0
out_alpha_procedural_justice <- psych::alpha(alpha_identity_judgements)
## Some items ( others_leave_me_out_of_the_group ) were negatively correlated with the total scale and
## probably should be reversed.
## To do this, run the function again with the 'check.keys=TRUE' option
capture.output(out_alpha_procedural_justice,file = "Cronbach_alpha/alpha_identity_judgements.txt")
#conspiracy_belief
alpha_conspiracy_belief <- justice_recoded_merged %>%
select(the_government_is_involved_in_the_murder_of_innocent_citizens_and_or_well_known_public_figures_and_keeps_this_a_secret_the_power_held_by_heads_of_state_is_second_to_that_of_small_unknown_groups:
experiments_involving_new_drugs_or_technologies_are_routinely_carried_out_on_the_public_without_their_knowledge_or_consent_a_lot_of_important_information_is_deliberately_concealed_from_the_public)
#Shorter output
cronbach.alpha(alpha_conspiracy_belief, CI=TRUE, standardized=TRUE)
##
## Standardized Cronbach's alpha for the 'alpha_conspiracy_belief' data-set
##
## Items: 12
## Sample units: 393
## alpha: 0.936
##
## Bootstrap 95% CI based on 1000 samples
## 2.5% 97.5%
## 0.924 0.946
#Complete Output
alpha(alpha_conspiracy_belief)
##
## Reliability analysis
## Call: alpha(x = alpha_conspiracy_belief)
##
## raw_alpha std.alpha G6(smc) average_r S/N ase mean sd median_r
## 0.94 0.94 0.95 0.55 15 0.0049 2.9 1.1 0.56
##
## lower alpha upper 95% confidence boundaries
## 0.93 0.94 0.95
##
## Reliability if an item is dropped:
## raw_alpha
## the_government_is_involved_in_the_murder_of_innocent_citizens_and_or_well_known_public_figures_and_keeps_this_a_secret_the_power_held_by_heads_of_state_is_second_to_that_of_small_unknown_groups 0.93
## secret_organizations_communicate_with_extraterrestrials_but_keep_this_fact_from_the_public 0.93
## the_spread_of_certain_viruses_and_or_diseases_is_the_result_of_the_deliberate_concealed_efforts_of_some_organization_groups_of_scientists_manipulate_fabricate_or_suppress_evidence_in_order_to_d 0.93
## the_government_permits_or_perpetrates_acts_of_terrorism_on_its_own_soil_disguising_its_involvement 0.93
## a_small_secret_group_of_people_is_responsible_for_making_all_major_world_decisions_such_as_going_to_war 0.93
## evidence_of_alien_contact_is_being_concealed_from_the_public 0.93
## technology_with_mind_control_capacities_is_used_on_people_without_their_knowledge 0.93
## new_and_advanced_technology_which_would_harm_current_industry_is_being_suppressed 0.94
## the_government_uses_people_as_patsies_to_hide_its_involvement_in_criminal_activity 0.93
## certain_significant_events_have_been_the_result_of_the_activity_of_a_small_group_who_secretly_manipulate_world_events 0.93
## some_ufo_sightings_and_rumors_are_planned_or_staged_in_order_to_distract_the_public_from_real_alien_contact 0.93
## experiments_involving_new_drugs_or_technologies_are_routinely_carried_out_on_the_public_without_their_knowledge_or_consent_a_lot_of_important_information_is_deliberately_concealed_from_the_public 0.93
## std.alpha
## the_government_is_involved_in_the_murder_of_innocent_citizens_and_or_well_known_public_figures_and_keeps_this_a_secret_the_power_held_by_heads_of_state_is_second_to_that_of_small_unknown_groups 0.93
## secret_organizations_communicate_with_extraterrestrials_but_keep_this_fact_from_the_public 0.93
## the_spread_of_certain_viruses_and_or_diseases_is_the_result_of_the_deliberate_concealed_efforts_of_some_organization_groups_of_scientists_manipulate_fabricate_or_suppress_evidence_in_order_to_d 0.93
## the_government_permits_or_perpetrates_acts_of_terrorism_on_its_own_soil_disguising_its_involvement 0.93
## a_small_secret_group_of_people_is_responsible_for_making_all_major_world_decisions_such_as_going_to_war 0.93
## evidence_of_alien_contact_is_being_concealed_from_the_public 0.93
## technology_with_mind_control_capacities_is_used_on_people_without_their_knowledge 0.93
## new_and_advanced_technology_which_would_harm_current_industry_is_being_suppressed 0.94
## the_government_uses_people_as_patsies_to_hide_its_involvement_in_criminal_activity 0.93
## certain_significant_events_have_been_the_result_of_the_activity_of_a_small_group_who_secretly_manipulate_world_events 0.93
## some_ufo_sightings_and_rumors_are_planned_or_staged_in_order_to_distract_the_public_from_real_alien_contact 0.93
## experiments_involving_new_drugs_or_technologies_are_routinely_carried_out_on_the_public_without_their_knowledge_or_consent_a_lot_of_important_information_is_deliberately_concealed_from_the_public 0.93
## G6(smc)
## the_government_is_involved_in_the_murder_of_innocent_citizens_and_or_well_known_public_figures_and_keeps_this_a_secret_the_power_held_by_heads_of_state_is_second_to_that_of_small_unknown_groups 0.94
## secret_organizations_communicate_with_extraterrestrials_but_keep_this_fact_from_the_public 0.94
## the_spread_of_certain_viruses_and_or_diseases_is_the_result_of_the_deliberate_concealed_efforts_of_some_organization_groups_of_scientists_manipulate_fabricate_or_suppress_evidence_in_order_to_d 0.94
## the_government_permits_or_perpetrates_acts_of_terrorism_on_its_own_soil_disguising_its_involvement 0.94
## a_small_secret_group_of_people_is_responsible_for_making_all_major_world_decisions_such_as_going_to_war 0.94
## evidence_of_alien_contact_is_being_concealed_from_the_public 0.94
## technology_with_mind_control_capacities_is_used_on_people_without_their_knowledge 0.94
## new_and_advanced_technology_which_would_harm_current_industry_is_being_suppressed 0.95
## the_government_uses_people_as_patsies_to_hide_its_involvement_in_criminal_activity 0.94
## certain_significant_events_have_been_the_result_of_the_activity_of_a_small_group_who_secretly_manipulate_world_events 0.94
## some_ufo_sightings_and_rumors_are_planned_or_staged_in_order_to_distract_the_public_from_real_alien_contact 0.94
## experiments_involving_new_drugs_or_technologies_are_routinely_carried_out_on_the_public_without_their_knowledge_or_consent_a_lot_of_important_information_is_deliberately_concealed_from_the_public 0.94
## average_r
## the_government_is_involved_in_the_murder_of_innocent_citizens_and_or_well_known_public_figures_and_keeps_this_a_secret_the_power_held_by_heads_of_state_is_second_to_that_of_small_unknown_groups 0.55
## secret_organizations_communicate_with_extraterrestrials_but_keep_this_fact_from_the_public 0.55
## the_spread_of_certain_viruses_and_or_diseases_is_the_result_of_the_deliberate_concealed_efforts_of_some_organization_groups_of_scientists_manipulate_fabricate_or_suppress_evidence_in_order_to_d 0.54
## the_government_permits_or_perpetrates_acts_of_terrorism_on_its_own_soil_disguising_its_involvement 0.55
## a_small_secret_group_of_people_is_responsible_for_making_all_major_world_decisions_such_as_going_to_war 0.54
## evidence_of_alien_contact_is_being_concealed_from_the_public 0.56
## technology_with_mind_control_capacities_is_used_on_people_without_their_knowledge 0.55
## new_and_advanced_technology_which_would_harm_current_industry_is_being_suppressed 0.57
## the_government_uses_people_as_patsies_to_hide_its_involvement_in_criminal_activity 0.55
## certain_significant_events_have_been_the_result_of_the_activity_of_a_small_group_who_secretly_manipulate_world_events 0.54
## some_ufo_sightings_and_rumors_are_planned_or_staged_in_order_to_distract_the_public_from_real_alien_contact 0.55
## experiments_involving_new_drugs_or_technologies_are_routinely_carried_out_on_the_public_without_their_knowledge_or_consent_a_lot_of_important_information_is_deliberately_concealed_from_the_public 0.55
## S/N
## the_government_is_involved_in_the_murder_of_innocent_citizens_and_or_well_known_public_figures_and_keeps_this_a_secret_the_power_held_by_heads_of_state_is_second_to_that_of_small_unknown_groups 13
## secret_organizations_communicate_with_extraterrestrials_but_keep_this_fact_from_the_public 14
## the_spread_of_certain_viruses_and_or_diseases_is_the_result_of_the_deliberate_concealed_efforts_of_some_organization_groups_of_scientists_manipulate_fabricate_or_suppress_evidence_in_order_to_d 13
## the_government_permits_or_perpetrates_acts_of_terrorism_on_its_own_soil_disguising_its_involvement 14
## a_small_secret_group_of_people_is_responsible_for_making_all_major_world_decisions_such_as_going_to_war 13
## evidence_of_alien_contact_is_being_concealed_from_the_public 14
## technology_with_mind_control_capacities_is_used_on_people_without_their_knowledge 13
## new_and_advanced_technology_which_would_harm_current_industry_is_being_suppressed 15
## the_government_uses_people_as_patsies_to_hide_its_involvement_in_criminal_activity 13
## certain_significant_events_have_been_the_result_of_the_activity_of_a_small_group_who_secretly_manipulate_world_events 13
## some_ufo_sightings_and_rumors_are_planned_or_staged_in_order_to_distract_the_public_from_real_alien_contact 14
## experiments_involving_new_drugs_or_technologies_are_routinely_carried_out_on_the_public_without_their_knowledge_or_consent_a_lot_of_important_information_is_deliberately_concealed_from_the_public 13
## alpha se
## the_government_is_involved_in_the_murder_of_innocent_citizens_and_or_well_known_public_figures_and_keeps_this_a_secret_the_power_held_by_heads_of_state_is_second_to_that_of_small_unknown_groups 0.0053
## secret_organizations_communicate_with_extraterrestrials_but_keep_this_fact_from_the_public 0.0052
## the_spread_of_certain_viruses_and_or_diseases_is_the_result_of_the_deliberate_concealed_efforts_of_some_organization_groups_of_scientists_manipulate_fabricate_or_suppress_evidence_in_order_to_d 0.0055
## the_government_permits_or_perpetrates_acts_of_terrorism_on_its_own_soil_disguising_its_involvement 0.0053
## a_small_secret_group_of_people_is_responsible_for_making_all_major_world_decisions_such_as_going_to_war 0.0054
## evidence_of_alien_contact_is_being_concealed_from_the_public 0.0050
## technology_with_mind_control_capacities_is_used_on_people_without_their_knowledge 0.0054
## new_and_advanced_technology_which_would_harm_current_industry_is_being_suppressed 0.0049
## the_government_uses_people_as_patsies_to_hide_its_involvement_in_criminal_activity 0.0054
## certain_significant_events_have_been_the_result_of_the_activity_of_a_small_group_who_secretly_manipulate_world_events 0.0056
## some_ufo_sightings_and_rumors_are_planned_or_staged_in_order_to_distract_the_public_from_real_alien_contact 0.0052
## experiments_involving_new_drugs_or_technologies_are_routinely_carried_out_on_the_public_without_their_knowledge_or_consent_a_lot_of_important_information_is_deliberately_concealed_from_the_public 0.0054
## var.r
## the_government_is_involved_in_the_murder_of_innocent_citizens_and_or_well_known_public_figures_and_keeps_this_a_secret_the_power_held_by_heads_of_state_is_second_to_that_of_small_unknown_groups 0.012
## secret_organizations_communicate_with_extraterrestrials_but_keep_this_fact_from_the_public 0.012
## the_spread_of_certain_viruses_and_or_diseases_is_the_result_of_the_deliberate_concealed_efforts_of_some_organization_groups_of_scientists_manipulate_fabricate_or_suppress_evidence_in_order_to_d 0.013
## the_government_permits_or_perpetrates_acts_of_terrorism_on_its_own_soil_disguising_its_involvement 0.012
## a_small_secret_group_of_people_is_responsible_for_making_all_major_world_decisions_such_as_going_to_war 0.013
## evidence_of_alien_contact_is_being_concealed_from_the_public 0.010
## technology_with_mind_control_capacities_is_used_on_people_without_their_knowledge 0.013
## new_and_advanced_technology_which_would_harm_current_industry_is_being_suppressed 0.011
## the_government_uses_people_as_patsies_to_hide_its_involvement_in_criminal_activity 0.012
## certain_significant_events_have_been_the_result_of_the_activity_of_a_small_group_who_secretly_manipulate_world_events 0.012
## some_ufo_sightings_and_rumors_are_planned_or_staged_in_order_to_distract_the_public_from_real_alien_contact 0.012
## experiments_involving_new_drugs_or_technologies_are_routinely_carried_out_on_the_public_without_their_knowledge_or_consent_a_lot_of_important_information_is_deliberately_concealed_from_the_public 0.014
## med.r
## the_government_is_involved_in_the_murder_of_innocent_citizens_and_or_well_known_public_figures_and_keeps_this_a_secret_the_power_held_by_heads_of_state_is_second_to_that_of_small_unknown_groups 0.56
## secret_organizations_communicate_with_extraterrestrials_but_keep_this_fact_from_the_public 0.56
## the_spread_of_certain_viruses_and_or_diseases_is_the_result_of_the_deliberate_concealed_efforts_of_some_organization_groups_of_scientists_manipulate_fabricate_or_suppress_evidence_in_order_to_d 0.54
## the_government_permits_or_perpetrates_acts_of_terrorism_on_its_own_soil_disguising_its_involvement 0.56
## a_small_secret_group_of_people_is_responsible_for_making_all_major_world_decisions_such_as_going_to_war 0.56
## evidence_of_alien_contact_is_being_concealed_from_the_public 0.58
## technology_with_mind_control_capacities_is_used_on_people_without_their_knowledge 0.56
## new_and_advanced_technology_which_would_harm_current_industry_is_being_suppressed 0.59
## the_government_uses_people_as_patsies_to_hide_its_involvement_in_criminal_activity 0.56
## certain_significant_events_have_been_the_result_of_the_activity_of_a_small_group_who_secretly_manipulate_world_events 0.55
## some_ufo_sightings_and_rumors_are_planned_or_staged_in_order_to_distract_the_public_from_real_alien_contact 0.58
## experiments_involving_new_drugs_or_technologies_are_routinely_carried_out_on_the_public_without_their_knowledge_or_consent_a_lot_of_important_information_is_deliberately_concealed_from_the_public 0.56
##
## Item statistics
## n
## the_government_is_involved_in_the_murder_of_innocent_citizens_and_or_well_known_public_figures_and_keeps_this_a_secret_the_power_held_by_heads_of_state_is_second_to_that_of_small_unknown_groups 393
## secret_organizations_communicate_with_extraterrestrials_but_keep_this_fact_from_the_public 393
## the_spread_of_certain_viruses_and_or_diseases_is_the_result_of_the_deliberate_concealed_efforts_of_some_organization_groups_of_scientists_manipulate_fabricate_or_suppress_evidence_in_order_to_d 393
## the_government_permits_or_perpetrates_acts_of_terrorism_on_its_own_soil_disguising_its_involvement 393
## a_small_secret_group_of_people_is_responsible_for_making_all_major_world_decisions_such_as_going_to_war 393
## evidence_of_alien_contact_is_being_concealed_from_the_public 393
## technology_with_mind_control_capacities_is_used_on_people_without_their_knowledge 393
## new_and_advanced_technology_which_would_harm_current_industry_is_being_suppressed 393
## the_government_uses_people_as_patsies_to_hide_its_involvement_in_criminal_activity 393
## certain_significant_events_have_been_the_result_of_the_activity_of_a_small_group_who_secretly_manipulate_world_events 393
## some_ufo_sightings_and_rumors_are_planned_or_staged_in_order_to_distract_the_public_from_real_alien_contact 393
## experiments_involving_new_drugs_or_technologies_are_routinely_carried_out_on_the_public_without_their_knowledge_or_consent_a_lot_of_important_information_is_deliberately_concealed_from_the_public 393
## raw.r
## the_government_is_involved_in_the_murder_of_innocent_citizens_and_or_well_known_public_figures_and_keeps_this_a_secret_the_power_held_by_heads_of_state_is_second_to_that_of_small_unknown_groups 0.78
## secret_organizations_communicate_with_extraterrestrials_but_keep_this_fact_from_the_public 0.75
## the_spread_of_certain_viruses_and_or_diseases_is_the_result_of_the_deliberate_concealed_efforts_of_some_organization_groups_of_scientists_manipulate_fabricate_or_suppress_evidence_in_order_to_d 0.81
## the_government_permits_or_perpetrates_acts_of_terrorism_on_its_own_soil_disguising_its_involvement 0.76
## a_small_secret_group_of_people_is_responsible_for_making_all_major_world_decisions_such_as_going_to_war 0.80
## evidence_of_alien_contact_is_being_concealed_from_the_public 0.69
## technology_with_mind_control_capacities_is_used_on_people_without_their_knowledge 0.79
## new_and_advanced_technology_which_would_harm_current_industry_is_being_suppressed 0.65
## the_government_uses_people_as_patsies_to_hide_its_involvement_in_criminal_activity 0.79
## certain_significant_events_have_been_the_result_of_the_activity_of_a_small_group_who_secretly_manipulate_world_events 0.84
## some_ufo_sightings_and_rumors_are_planned_or_staged_in_order_to_distract_the_public_from_real_alien_contact 0.74
## experiments_involving_new_drugs_or_technologies_are_routinely_carried_out_on_the_public_without_their_knowledge_or_consent_a_lot_of_important_information_is_deliberately_concealed_from_the_public 0.79
## std.r
## the_government_is_involved_in_the_murder_of_innocent_citizens_and_or_well_known_public_figures_and_keeps_this_a_secret_the_power_held_by_heads_of_state_is_second_to_that_of_small_unknown_groups 0.78
## secret_organizations_communicate_with_extraterrestrials_but_keep_this_fact_from_the_public 0.76
## the_spread_of_certain_viruses_and_or_diseases_is_the_result_of_the_deliberate_concealed_efforts_of_some_organization_groups_of_scientists_manipulate_fabricate_or_suppress_evidence_in_order_to_d 0.82
## the_government_permits_or_perpetrates_acts_of_terrorism_on_its_own_soil_disguising_its_involvement 0.76
## a_small_secret_group_of_people_is_responsible_for_making_all_major_world_decisions_such_as_going_to_war 0.80
## evidence_of_alien_contact_is_being_concealed_from_the_public 0.69
## technology_with_mind_control_capacities_is_used_on_people_without_their_knowledge 0.79
## new_and_advanced_technology_which_would_harm_current_industry_is_being_suppressed 0.65
## the_government_uses_people_as_patsies_to_hide_its_involvement_in_criminal_activity 0.79
## certain_significant_events_have_been_the_result_of_the_activity_of_a_small_group_who_secretly_manipulate_world_events 0.84
## some_ufo_sightings_and_rumors_are_planned_or_staged_in_order_to_distract_the_public_from_real_alien_contact 0.75
## experiments_involving_new_drugs_or_technologies_are_routinely_carried_out_on_the_public_without_their_knowledge_or_consent_a_lot_of_important_information_is_deliberately_concealed_from_the_public 0.79
## r.cor
## the_government_is_involved_in_the_murder_of_innocent_citizens_and_or_well_known_public_figures_and_keeps_this_a_secret_the_power_held_by_heads_of_state_is_second_to_that_of_small_unknown_groups 0.76
## secret_organizations_communicate_with_extraterrestrials_but_keep_this_fact_from_the_public 0.74
## the_spread_of_certain_viruses_and_or_diseases_is_the_result_of_the_deliberate_concealed_efforts_of_some_organization_groups_of_scientists_manipulate_fabricate_or_suppress_evidence_in_order_to_d 0.80
## the_government_permits_or_perpetrates_acts_of_terrorism_on_its_own_soil_disguising_its_involvement 0.74
## a_small_secret_group_of_people_is_responsible_for_making_all_major_world_decisions_such_as_going_to_war 0.79
## evidence_of_alien_contact_is_being_concealed_from_the_public 0.67
## technology_with_mind_control_capacities_is_used_on_people_without_their_knowledge 0.77
## new_and_advanced_technology_which_would_harm_current_industry_is_being_suppressed 0.60
## the_government_uses_people_as_patsies_to_hide_its_involvement_in_criminal_activity 0.77
## certain_significant_events_have_been_the_result_of_the_activity_of_a_small_group_who_secretly_manipulate_world_events 0.83
## some_ufo_sightings_and_rumors_are_planned_or_staged_in_order_to_distract_the_public_from_real_alien_contact 0.73
## experiments_involving_new_drugs_or_technologies_are_routinely_carried_out_on_the_public_without_their_knowledge_or_consent_a_lot_of_important_information_is_deliberately_concealed_from_the_public 0.76
## r.drop
## the_government_is_involved_in_the_murder_of_innocent_citizens_and_or_well_known_public_figures_and_keeps_this_a_secret_the_power_held_by_heads_of_state_is_second_to_that_of_small_unknown_groups 0.73
## secret_organizations_communicate_with_extraterrestrials_but_keep_this_fact_from_the_public 0.70
## the_spread_of_certain_viruses_and_or_diseases_is_the_result_of_the_deliberate_concealed_efforts_of_some_organization_groups_of_scientists_manipulate_fabricate_or_suppress_evidence_in_order_to_d 0.77
## the_government_permits_or_perpetrates_acts_of_terrorism_on_its_own_soil_disguising_its_involvement 0.71
## a_small_secret_group_of_people_is_responsible_for_making_all_major_world_decisions_such_as_going_to_war 0.75
## evidence_of_alien_contact_is_being_concealed_from_the_public 0.62
## technology_with_mind_control_capacities_is_used_on_people_without_their_knowledge 0.74
## new_and_advanced_technology_which_would_harm_current_industry_is_being_suppressed 0.58
## the_government_uses_people_as_patsies_to_hide_its_involvement_in_criminal_activity 0.74
## certain_significant_events_have_been_the_result_of_the_activity_of_a_small_group_who_secretly_manipulate_world_events 0.80
## some_ufo_sightings_and_rumors_are_planned_or_staged_in_order_to_distract_the_public_from_real_alien_contact 0.69
## experiments_involving_new_drugs_or_technologies_are_routinely_carried_out_on_the_public_without_their_knowledge_or_consent_a_lot_of_important_information_is_deliberately_concealed_from_the_public 0.74
## mean
## the_government_is_involved_in_the_murder_of_innocent_citizens_and_or_well_known_public_figures_and_keeps_this_a_secret_the_power_held_by_heads_of_state_is_second_to_that_of_small_unknown_groups 3.2
## secret_organizations_communicate_with_extraterrestrials_but_keep_this_fact_from_the_public 2.4
## the_spread_of_certain_viruses_and_or_diseases_is_the_result_of_the_deliberate_concealed_efforts_of_some_organization_groups_of_scientists_manipulate_fabricate_or_suppress_evidence_in_order_to_d 2.8
## the_government_permits_or_perpetrates_acts_of_terrorism_on_its_own_soil_disguising_its_involvement 3.3
## a_small_secret_group_of_people_is_responsible_for_making_all_major_world_decisions_such_as_going_to_war 2.9
## evidence_of_alien_contact_is_being_concealed_from_the_public 2.8
## technology_with_mind_control_capacities_is_used_on_people_without_their_knowledge 2.4
## new_and_advanced_technology_which_would_harm_current_industry_is_being_suppressed 3.5
## the_government_uses_people_as_patsies_to_hide_its_involvement_in_criminal_activity 3.4
## certain_significant_events_have_been_the_result_of_the_activity_of_a_small_group_who_secretly_manipulate_world_events 3.0
## some_ufo_sightings_and_rumors_are_planned_or_staged_in_order_to_distract_the_public_from_real_alien_contact 2.4
## experiments_involving_new_drugs_or_technologies_are_routinely_carried_out_on_the_public_without_their_knowledge_or_consent_a_lot_of_important_information_is_deliberately_concealed_from_the_public 3.2
## sd
## the_government_is_involved_in_the_murder_of_innocent_citizens_and_or_well_known_public_figures_and_keeps_this_a_secret_the_power_held_by_heads_of_state_is_second_to_that_of_small_unknown_groups 1.4
## secret_organizations_communicate_with_extraterrestrials_but_keep_this_fact_from_the_public 1.4
## the_spread_of_certain_viruses_and_or_diseases_is_the_result_of_the_deliberate_concealed_efforts_of_some_organization_groups_of_scientists_manipulate_fabricate_or_suppress_evidence_in_order_to_d 1.4
## the_government_permits_or_perpetrates_acts_of_terrorism_on_its_own_soil_disguising_its_involvement 1.5
## a_small_secret_group_of_people_is_responsible_for_making_all_major_world_decisions_such_as_going_to_war 1.5
## evidence_of_alien_contact_is_being_concealed_from_the_public 1.5
## technology_with_mind_control_capacities_is_used_on_people_without_their_knowledge 1.4
## new_and_advanced_technology_which_would_harm_current_industry_is_being_suppressed 1.5
## the_government_uses_people_as_patsies_to_hide_its_involvement_in_criminal_activity 1.5
## certain_significant_events_have_been_the_result_of_the_activity_of_a_small_group_who_secretly_manipulate_world_events 1.5
## some_ufo_sightings_and_rumors_are_planned_or_staged_in_order_to_distract_the_public_from_real_alien_contact 1.3
## experiments_involving_new_drugs_or_technologies_are_routinely_carried_out_on_the_public_without_their_knowledge_or_consent_a_lot_of_important_information_is_deliberately_concealed_from_the_public 1.5
##
## Non missing response frequency for each item
## 1
## the_government_is_involved_in_the_murder_of_innocent_citizens_and_or_well_known_public_figures_and_keeps_this_a_secret_the_power_held_by_heads_of_state_is_second_to_that_of_small_unknown_groups 0.13
## secret_organizations_communicate_with_extraterrestrials_but_keep_this_fact_from_the_public 0.34
## the_spread_of_certain_viruses_and_or_diseases_is_the_result_of_the_deliberate_concealed_efforts_of_some_organization_groups_of_scientists_manipulate_fabricate_or_suppress_evidence_in_order_to_d 0.23
## the_government_permits_or_perpetrates_acts_of_terrorism_on_its_own_soil_disguising_its_involvement 0.15
## a_small_secret_group_of_people_is_responsible_for_making_all_major_world_decisions_such_as_going_to_war 0.23
## evidence_of_alien_contact_is_being_concealed_from_the_public 0.27
## technology_with_mind_control_capacities_is_used_on_people_without_their_knowledge 0.37
## new_and_advanced_technology_which_would_harm_current_industry_is_being_suppressed 0.14
## the_government_uses_people_as_patsies_to_hide_its_involvement_in_criminal_activity 0.13
## certain_significant_events_have_been_the_result_of_the_activity_of_a_small_group_who_secretly_manipulate_world_events 0.22
## some_ufo_sightings_and_rumors_are_planned_or_staged_in_order_to_distract_the_public_from_real_alien_contact 0.34
## experiments_involving_new_drugs_or_technologies_are_routinely_carried_out_on_the_public_without_their_knowledge_or_consent_a_lot_of_important_information_is_deliberately_concealed_from_the_public 0.15
## 2
## the_government_is_involved_in_the_murder_of_innocent_citizens_and_or_well_known_public_figures_and_keeps_this_a_secret_the_power_held_by_heads_of_state_is_second_to_that_of_small_unknown_groups 0.18
## secret_organizations_communicate_with_extraterrestrials_but_keep_this_fact_from_the_public 0.23
## the_spread_of_certain_viruses_and_or_diseases_is_the_result_of_the_deliberate_concealed_efforts_of_some_organization_groups_of_scientists_manipulate_fabricate_or_suppress_evidence_in_order_to_d 0.21
## the_government_permits_or_perpetrates_acts_of_terrorism_on_its_own_soil_disguising_its_involvement 0.20
## a_small_secret_group_of_people_is_responsible_for_making_all_major_world_decisions_such_as_going_to_war 0.20
## evidence_of_alien_contact_is_being_concealed_from_the_public 0.19
## technology_with_mind_control_capacities_is_used_on_people_without_their_knowledge 0.21
## new_and_advanced_technology_which_would_harm_current_industry_is_being_suppressed 0.12
## the_government_uses_people_as_patsies_to_hide_its_involvement_in_criminal_activity 0.15
## certain_significant_events_have_been_the_result_of_the_activity_of_a_small_group_who_secretly_manipulate_world_events 0.18
## some_ufo_sightings_and_rumors_are_planned_or_staged_in_order_to_distract_the_public_from_real_alien_contact 0.23
## experiments_involving_new_drugs_or_technologies_are_routinely_carried_out_on_the_public_without_their_knowledge_or_consent_a_lot_of_important_information_is_deliberately_concealed_from_the_public 0.21
## 3
## the_government_is_involved_in_the_murder_of_innocent_citizens_and_or_well_known_public_figures_and_keeps_this_a_secret_the_power_held_by_heads_of_state_is_second_to_that_of_small_unknown_groups 0.27
## secret_organizations_communicate_with_extraterrestrials_but_keep_this_fact_from_the_public 0.20
## the_spread_of_certain_viruses_and_or_diseases_is_the_result_of_the_deliberate_concealed_efforts_of_some_organization_groups_of_scientists_manipulate_fabricate_or_suppress_evidence_in_order_to_d 0.24
## the_government_permits_or_perpetrates_acts_of_terrorism_on_its_own_soil_disguising_its_involvement 0.20
## a_small_secret_group_of_people_is_responsible_for_making_all_major_world_decisions_such_as_going_to_war 0.18
## evidence_of_alien_contact_is_being_concealed_from_the_public 0.18
## technology_with_mind_control_capacities_is_used_on_people_without_their_knowledge 0.20
## new_and_advanced_technology_which_would_harm_current_industry_is_being_suppressed 0.19
## the_government_uses_people_as_patsies_to_hide_its_involvement_in_criminal_activity 0.21
## certain_significant_events_have_been_the_result_of_the_activity_of_a_small_group_who_secretly_manipulate_world_events 0.20
## some_ufo_sightings_and_rumors_are_planned_or_staged_in_order_to_distract_the_public_from_real_alien_contact 0.18
## experiments_involving_new_drugs_or_technologies_are_routinely_carried_out_on_the_public_without_their_knowledge_or_consent_a_lot_of_important_information_is_deliberately_concealed_from_the_public 0.21
## 4
## the_government_is_involved_in_the_murder_of_innocent_citizens_and_or_well_known_public_figures_and_keeps_this_a_secret_the_power_held_by_heads_of_state_is_second_to_that_of_small_unknown_groups 0.24
## secret_organizations_communicate_with_extraterrestrials_but_keep_this_fact_from_the_public 0.15
## the_spread_of_certain_viruses_and_or_diseases_is_the_result_of_the_deliberate_concealed_efforts_of_some_organization_groups_of_scientists_manipulate_fabricate_or_suppress_evidence_in_order_to_d 0.20
## the_government_permits_or_perpetrates_acts_of_terrorism_on_its_own_soil_disguising_its_involvement 0.24
## a_small_secret_group_of_people_is_responsible_for_making_all_major_world_decisions_such_as_going_to_war 0.22
## evidence_of_alien_contact_is_being_concealed_from_the_public 0.24
## technology_with_mind_control_capacities_is_used_on_people_without_their_knowledge 0.13
## new_and_advanced_technology_which_would_harm_current_industry_is_being_suppressed 0.27
## the_government_uses_people_as_patsies_to_hide_its_involvement_in_criminal_activity 0.27
## certain_significant_events_have_been_the_result_of_the_activity_of_a_small_group_who_secretly_manipulate_world_events 0.25
## some_ufo_sightings_and_rumors_are_planned_or_staged_in_order_to_distract_the_public_from_real_alien_contact 0.20
## experiments_involving_new_drugs_or_technologies_are_routinely_carried_out_on_the_public_without_their_knowledge_or_consent_a_lot_of_important_information_is_deliberately_concealed_from_the_public 0.25
## 5
## the_government_is_involved_in_the_murder_of_innocent_citizens_and_or_well_known_public_figures_and_keeps_this_a_secret_the_power_held_by_heads_of_state_is_second_to_that_of_small_unknown_groups 0.09
## secret_organizations_communicate_with_extraterrestrials_but_keep_this_fact_from_the_public 0.06
## the_spread_of_certain_viruses_and_or_diseases_is_the_result_of_the_deliberate_concealed_efforts_of_some_organization_groups_of_scientists_manipulate_fabricate_or_suppress_evidence_in_order_to_d 0.09
## the_government_permits_or_perpetrates_acts_of_terrorism_on_its_own_soil_disguising_its_involvement 0.12
## a_small_secret_group_of_people_is_responsible_for_making_all_major_world_decisions_such_as_going_to_war 0.10
## evidence_of_alien_contact_is_being_concealed_from_the_public 0.07
## technology_with_mind_control_capacities_is_used_on_people_without_their_knowledge 0.06
## new_and_advanced_technology_which_would_harm_current_industry_is_being_suppressed 0.16
## the_government_uses_people_as_patsies_to_hide_its_involvement_in_criminal_activity 0.14
## certain_significant_events_have_been_the_result_of_the_activity_of_a_small_group_who_secretly_manipulate_world_events 0.09
## some_ufo_sightings_and_rumors_are_planned_or_staged_in_order_to_distract_the_public_from_real_alien_contact 0.04
## experiments_involving_new_drugs_or_technologies_are_routinely_carried_out_on_the_public_without_their_knowledge_or_consent_a_lot_of_important_information_is_deliberately_concealed_from_the_public 0.12
## 6
## the_government_is_involved_in_the_murder_of_innocent_citizens_and_or_well_known_public_figures_and_keeps_this_a_secret_the_power_held_by_heads_of_state_is_second_to_that_of_small_unknown_groups 0.09
## secret_organizations_communicate_with_extraterrestrials_but_keep_this_fact_from_the_public 0.02
## the_spread_of_certain_viruses_and_or_diseases_is_the_result_of_the_deliberate_concealed_efforts_of_some_organization_groups_of_scientists_manipulate_fabricate_or_suppress_evidence_in_order_to_d 0.03
## the_government_permits_or_perpetrates_acts_of_terrorism_on_its_own_soil_disguising_its_involvement 0.09
## a_small_secret_group_of_people_is_responsible_for_making_all_major_world_decisions_such_as_going_to_war 0.06
## evidence_of_alien_contact_is_being_concealed_from_the_public 0.04
## technology_with_mind_control_capacities_is_used_on_people_without_their_knowledge 0.03
## new_and_advanced_technology_which_would_harm_current_industry_is_being_suppressed 0.12
## the_government_uses_people_as_patsies_to_hide_its_involvement_in_criminal_activity 0.10
## certain_significant_events_have_been_the_result_of_the_activity_of_a_small_group_who_secretly_manipulate_world_events 0.06
## some_ufo_sightings_and_rumors_are_planned_or_staged_in_order_to_distract_the_public_from_real_alien_contact 0.01
## experiments_involving_new_drugs_or_technologies_are_routinely_carried_out_on_the_public_without_their_knowledge_or_consent_a_lot_of_important_information_is_deliberately_concealed_from_the_public 0.07
## miss
## the_government_is_involved_in_the_murder_of_innocent_citizens_and_or_well_known_public_figures_and_keeps_this_a_secret_the_power_held_by_heads_of_state_is_second_to_that_of_small_unknown_groups 0
## secret_organizations_communicate_with_extraterrestrials_but_keep_this_fact_from_the_public 0
## the_spread_of_certain_viruses_and_or_diseases_is_the_result_of_the_deliberate_concealed_efforts_of_some_organization_groups_of_scientists_manipulate_fabricate_or_suppress_evidence_in_order_to_d 0
## the_government_permits_or_perpetrates_acts_of_terrorism_on_its_own_soil_disguising_its_involvement 0
## a_small_secret_group_of_people_is_responsible_for_making_all_major_world_decisions_such_as_going_to_war 0
## evidence_of_alien_contact_is_being_concealed_from_the_public 0
## technology_with_mind_control_capacities_is_used_on_people_without_their_knowledge 0
## new_and_advanced_technology_which_would_harm_current_industry_is_being_suppressed 0
## the_government_uses_people_as_patsies_to_hide_its_involvement_in_criminal_activity 0
## certain_significant_events_have_been_the_result_of_the_activity_of_a_small_group_who_secretly_manipulate_world_events 0
## some_ufo_sightings_and_rumors_are_planned_or_staged_in_order_to_distract_the_public_from_real_alien_contact 0
## experiments_involving_new_drugs_or_technologies_are_routinely_carried_out_on_the_public_without_their_knowledge_or_consent_a_lot_of_important_information_is_deliberately_concealed_from_the_public 0
out_alpha_conspiracy_belief <- psych::alpha(alpha_conspiracy_belief)
capture.output(out_alpha_conspiracy_belief,file = "Cronbach_alpha/alpha_conspiracy_belief.txt")
#literacy_level
alpha_literacy_level <- justice_recoded_merged %>%
select(i_only_read_if_i_have_to:
as_soon_as_i_finish_a_book_i_already_think_about_the_one_im_going_to_start_next)
#Shorter output
cronbach.alpha(alpha_literacy_level, CI=TRUE, standardized=TRUE)
##
## Standardized Cronbach's alpha for the 'alpha_literacy_level' data-set
##
## Items: 6
## Sample units: 393
## alpha: -0.631
##
## Bootstrap 95% CI based on 1000 samples
## 2.5% 97.5%
## -1.030 -0.316
#Complete Output
alpha(alpha_literacy_level)
## Some items ( i_only_read_if_i_have_to i_find_it_hard_to_finish_a_book for_me_reading_for_pleasure_is_a_waste_of_time ) were negatively correlated with the total scale and
## probably should be reversed.
## To do this, run the function again with the 'check.keys=TRUE' option
##
## Reliability analysis
## Call: alpha(x = alpha_literacy_level)
##
## raw_alpha std.alpha G6(smc) average_r S/N ase mean sd median_r
## -0.59 -0.63 0.33 -0.069 -0.39 0.14 3.8 0.44 -0.48
##
## lower alpha upper 95% confidence boundaries
## -0.86 -0.59 -0.32
##
## Reliability if an item is dropped:
## raw_alpha
## i_only_read_if_i_have_to -0.25
## reading_is_one_of_my_favorite_pastimes -0.44
## i_find_it_hard_to_finish_a_book -0.22
## for_me_reading_for_pleasure_is_a_waste_of_time -0.37
## i_really_enjoy_going_to_a_bookstore_or_a_library -0.78
## as_soon_as_i_finish_a_book_i_already_think_about_the_one_im_going_to_start_next -0.83
## std.alpha
## i_only_read_if_i_have_to -0.38
## reading_is_one_of_my_favorite_pastimes -0.36
## i_find_it_hard_to_finish_a_book -0.40
## for_me_reading_for_pleasure_is_a_waste_of_time -0.37
## i_really_enjoy_going_to_a_bookstore_or_a_library -0.67
## as_soon_as_i_finish_a_book_i_already_think_about_the_one_im_going_to_start_next -0.75
## G6(smc)
## i_only_read_if_i_have_to 0.43
## reading_is_one_of_my_favorite_pastimes 0.34
## i_find_it_hard_to_finish_a_book 0.41
## for_me_reading_for_pleasure_is_a_waste_of_time 0.41
## i_really_enjoy_going_to_a_bookstore_or_a_library 0.30
## as_soon_as_i_finish_a_book_i_already_think_about_the_one_im_going_to_start_next 0.26
## average_r
## i_only_read_if_i_have_to -0.059
## reading_is_one_of_my_favorite_pastimes -0.056
## i_find_it_hard_to_finish_a_book -0.061
## for_me_reading_for_pleasure_is_a_waste_of_time -0.057
## i_really_enjoy_going_to_a_bookstore_or_a_library -0.087
## as_soon_as_i_finish_a_book_i_already_think_about_the_one_im_going_to_start_next -0.094
## S/N
## i_only_read_if_i_have_to -0.28
## reading_is_one_of_my_favorite_pastimes -0.27
## i_find_it_hard_to_finish_a_book -0.29
## for_me_reading_for_pleasure_is_a_waste_of_time -0.27
## i_really_enjoy_going_to_a_bookstore_or_a_library -0.40
## as_soon_as_i_finish_a_book_i_already_think_about_the_one_im_going_to_start_next -0.43
## alpha se
## i_only_read_if_i_have_to 0.099
## reading_is_one_of_my_favorite_pastimes 0.125
## i_find_it_hard_to_finish_a_book 0.093
## for_me_reading_for_pleasure_is_a_waste_of_time 0.112
## i_really_enjoy_going_to_a_bookstore_or_a_library 0.154
## as_soon_as_i_finish_a_book_i_already_think_about_the_one_im_going_to_start_next 0.156
## var.r
## i_only_read_if_i_have_to 0.40
## reading_is_one_of_my_favorite_pastimes 0.33
## i_find_it_hard_to_finish_a_book 0.40
## for_me_reading_for_pleasure_is_a_waste_of_time 0.39
## i_really_enjoy_going_to_a_bookstore_or_a_library 0.38
## as_soon_as_i_finish_a_book_i_already_think_about_the_one_im_going_to_start_next 0.38
## med.r
## i_only_read_if_i_have_to -0.47
## reading_is_one_of_my_favorite_pastimes -0.47
## i_find_it_hard_to_finish_a_book -0.49
## for_me_reading_for_pleasure_is_a_waste_of_time -0.48
## i_really_enjoy_going_to_a_bookstore_or_a_library -0.49
## as_soon_as_i_finish_a_book_i_already_think_about_the_one_im_going_to_start_next -0.49
##
## Item statistics
## n
## i_only_read_if_i_have_to 393
## reading_is_one_of_my_favorite_pastimes 393
## i_find_it_hard_to_finish_a_book 393
## for_me_reading_for_pleasure_is_a_waste_of_time 393
## i_really_enjoy_going_to_a_bookstore_or_a_library 393
## as_soon_as_i_finish_a_book_i_already_think_about_the_one_im_going_to_start_next 393
## raw.r
## i_only_read_if_i_have_to 0.21
## reading_is_one_of_my_favorite_pastimes 0.34
## i_find_it_hard_to_finish_a_book 0.24
## for_me_reading_for_pleasure_is_a_waste_of_time 0.17
## i_really_enjoy_going_to_a_bookstore_or_a_library 0.49
## as_soon_as_i_finish_a_book_i_already_think_about_the_one_im_going_to_start_next 0.52
## std.r
## i_only_read_if_i_have_to 0.28
## reading_is_one_of_my_favorite_pastimes 0.27
## i_find_it_hard_to_finish_a_book 0.29
## for_me_reading_for_pleasure_is_a_waste_of_time 0.27
## i_really_enjoy_going_to_a_bookstore_or_a_library 0.42
## as_soon_as_i_finish_a_book_i_already_think_about_the_one_im_going_to_start_next 0.46
## r.cor
## i_only_read_if_i_have_to 0.022
## reading_is_one_of_my_favorite_pastimes 0.216
## i_find_it_hard_to_finish_a_book 0.078
## for_me_reading_for_pleasure_is_a_waste_of_time 0.057
## i_really_enjoy_going_to_a_bookstore_or_a_library 0.351
## as_soon_as_i_finish_a_book_i_already_think_about_the_one_im_going_to_start_next 0.412
## r.drop
## i_only_read_if_i_have_to -0.279
## reading_is_one_of_my_favorite_pastimes -0.174
## i_find_it_hard_to_finish_a_book -0.289
## for_me_reading_for_pleasure_is_a_waste_of_time -0.233
## i_really_enjoy_going_to_a_bookstore_or_a_library -0.020
## as_soon_as_i_finish_a_book_i_already_think_about_the_one_im_going_to_start_next -0.014
## mean
## i_only_read_if_i_have_to 4.8
## reading_is_one_of_my_favorite_pastimes 2.7
## i_find_it_hard_to_finish_a_book 4.4
## for_me_reading_for_pleasure_is_a_waste_of_time 5.2
## i_really_enjoy_going_to_a_bookstore_or_a_library 2.5
## as_soon_as_i_finish_a_book_i_already_think_about_the_one_im_going_to_start_next 3.0
## sd
## i_only_read_if_i_have_to 1.3
## reading_is_one_of_my_favorite_pastimes 1.3
## i_find_it_hard_to_finish_a_book 1.4
## for_me_reading_for_pleasure_is_a_waste_of_time 1.1
## i_really_enjoy_going_to_a_bookstore_or_a_library 1.3
## as_soon_as_i_finish_a_book_i_already_think_about_the_one_im_going_to_start_next 1.4
##
## Non missing response frequency for each item
## 1
## i_only_read_if_i_have_to 0.03
## reading_is_one_of_my_favorite_pastimes 0.23
## i_find_it_hard_to_finish_a_book 0.03
## for_me_reading_for_pleasure_is_a_waste_of_time 0.01
## i_really_enjoy_going_to_a_bookstore_or_a_library 0.26
## as_soon_as_i_finish_a_book_i_already_think_about_the_one_im_going_to_start_next 0.18
## 2
## i_only_read_if_i_have_to 0.05
## reading_is_one_of_my_favorite_pastimes 0.26
## i_find_it_hard_to_finish_a_book 0.09
## for_me_reading_for_pleasure_is_a_waste_of_time 0.04
## i_really_enjoy_going_to_a_bookstore_or_a_library 0.29
## as_soon_as_i_finish_a_book_i_already_think_about_the_one_im_going_to_start_next 0.19
## 3
## i_only_read_if_i_have_to 0.10
## reading_is_one_of_my_favorite_pastimes 0.27
## i_find_it_hard_to_finish_a_book 0.15
## for_me_reading_for_pleasure_is_a_waste_of_time 0.04
## i_really_enjoy_going_to_a_bookstore_or_a_library 0.25
## as_soon_as_i_finish_a_book_i_already_think_about_the_one_im_going_to_start_next 0.28
## 4
## i_only_read_if_i_have_to 0.12
## reading_is_one_of_my_favorite_pastimes 0.13
## i_find_it_hard_to_finish_a_book 0.19
## for_me_reading_for_pleasure_is_a_waste_of_time 0.10
## i_really_enjoy_going_to_a_bookstore_or_a_library 0.11
## as_soon_as_i_finish_a_book_i_already_think_about_the_one_im_going_to_start_next 0.18
## 5
## i_only_read_if_i_have_to 0.35
## reading_is_one_of_my_favorite_pastimes 0.09
## i_find_it_hard_to_finish_a_book 0.27
## for_me_reading_for_pleasure_is_a_waste_of_time 0.28
## i_really_enjoy_going_to_a_bookstore_or_a_library 0.06
## as_soon_as_i_finish_a_book_i_already_think_about_the_one_im_going_to_start_next 0.13
## 6
## i_only_read_if_i_have_to 0.36
## reading_is_one_of_my_favorite_pastimes 0.03
## i_find_it_hard_to_finish_a_book 0.28
## for_me_reading_for_pleasure_is_a_waste_of_time 0.53
## i_really_enjoy_going_to_a_bookstore_or_a_library 0.04
## as_soon_as_i_finish_a_book_i_already_think_about_the_one_im_going_to_start_next 0.05
## miss
## i_only_read_if_i_have_to 0
## reading_is_one_of_my_favorite_pastimes 0
## i_find_it_hard_to_finish_a_book 0
## for_me_reading_for_pleasure_is_a_waste_of_time 0
## i_really_enjoy_going_to_a_bookstore_or_a_library 0
## as_soon_as_i_finish_a_book_i_already_think_about_the_one_im_going_to_start_next 0
out_alpha_literacy_level <- psych::alpha(alpha_literacy_level)
## Some items ( i_only_read_if_i_have_to i_find_it_hard_to_finish_a_book for_me_reading_for_pleasure_is_a_waste_of_time ) were negatively correlated with the total scale and
## probably should be reversed.
## To do this, run the function again with the 'check.keys=TRUE' option
capture.output(out_alpha_literacy_level,file = "Cronbach_alpha/alpha_literacy_level.txt")
Mediation
# Mediations --------------------------------------------------------------
JS_model <- mdt_simple(def_justice,
DV = index_conspiracy_belief,
IV = index_procedural_justice,
M = index_identity_judgements)
JS_model
## Test of mediation (simple mediation)
## ==============================================
##
## Variables:
##
## - IV: index_procedural_justice
## - DV: index_conspiracy_belief
## - M: index_identity_judgements
##
## Paths:
##
## ==== ============== ===== ========================
## Path Point estimate SE APA
## ==== ============== ===== ========================
## a 0.481 0.032 t(391) = 15.04, p < .001
## b -0.175 0.081 t(390) = 2.16, p = .031
## c -0.051 0.052 t(391) = 0.99, p = .322
## c' 0.033 0.064 t(390) = 0.52, p = .605
## ==== ============== ===== ========================
##
## Indirect effect index:
##
## Indirect effect index is not computed by default.
## Please use add_index() to compute it.
##
## Fitted models:
##
## - X -> Y
## - X -> M
## - X + M -> Y
m0_justice<-lm(index_conspiracy_belief ~ index_procedural_justice +
index_identity_judgements +
index_literacy_level+
group_may_min+
dup_political_orientation,
data = def_justice)