/* This do-file creates the alpha scores for the Big Five and NEED FOR COGNITION for Study 2 in Gideon, Helppie-McFall and Hsu, "Heaping at Round Numbers on Financial Questions: The Role of Satisficing" version submitted 2016.12.22 */ /* *************** 0. set directories and global macros for variable lists */ clear capture log close set mem 500M set more off #delimit; set seed 1234567; set type double, permanently; /***** SET DIRECTORIES **********************************************************/ /**NEEDS TO BE CHANGED BY RESEARCHER**/ cd "C:\Users\bhelppie\Box Sync\Documents\Survey Methodology Research\Gideon Hsu McFall Rounding 2015\SRM Final 2017\replication materials\"; ***cd "/SET_BY_RESEARCHER/"; use "rawdata/study2_to_calc_alpha.dta", clear; log using "output/alphas.txt", text replace; disp "alpha calculations"; /** NEED FOR COGNITION WITH 490 OBSERVATIONS IN MAIN SPECIFICATION**/ alpha w2_ncr01 w2_ncr02 w2_ncr03 w2_ncr04 w2_ncr05 w2_ncr06 w2_ncr07 w2_ncr08 w2_ncr09 w2_ncr10 w2_ncr11 w2_ncr12 w2_ncr13 w2_ncr14 w2_ncr15 w2_ncr16 w2_ncr17 w2_ncr18 if sample1==1; /**CONSCIENTIOUSNESS**/ alpha w2_bfr03 w2_bfr08 w2_bfr13 w2_bfr18 w2_bfr23 w2_bfr28 w2_bfr33 w2_bfr38 w2_bfr43 if sample1==1; /**OPENNESS**/ alpha w2_bfr05 w2_bfr10 w2_bfr15 w2_bfr20 w2_bfr25 w2_bfr30 w2_bfr35 w2_bfr40 w2_bfr41 w2_bfr44 if sample1==1; /**NOW FOR SAMPLE OF SINGLE ACCOUNT Q'S: 427 **/ alpha w2_ncr01 w2_ncr02 w2_ncr03 w2_ncr04 w2_ncr05 w2_ncr06 w2_ncr07 w2_ncr08 w2_ncr09 w2_ncr10 w2_ncr11 w2_ncr12 w2_ncr13 w2_ncr14 w2_ncr15 w2_ncr16 w2_ncr17 w2_ncr18 if sample2==1; alpha w2_bfr03 w2_bfr08 w2_bfr13 w2_bfr18 w2_bfr23 w2_bfr28 w2_bfr33 w2_bfr38 w2_bfr43 if sample2==1; alpha w2_bfr05 w2_bfr10 w2_bfr15 w2_bfr20 w2_bfr25 w2_bfr30 w2_bfr35 w2_bfr40 w2_bfr41 w2_bfr44 if sample2==1; log close; /********************************************************************************/ /********************************************************************************/