* Encoding: UTF-8.

*######################################################################################.
*#
*#   CORRELATIONS BETWEEN URGE AND INTENT.
*#
*######################################################################################.

*# Correlations to inform creating an index or not.

*#  REFLECTION (Group1).
USE ALL.
COMPUTE filter_$=(Condition=1).
VARIABLE LABELS filter_$ 'Condition=1 (FILTER)'.
VALUE LABELS filter_$ 0 'Not Selected' 1 'Selected'.
FORMATS filter_$ (f1.0).
FILTER BY filter_$.
EXECUTE.

CORRELATIONS
  /VARIABLES=Q5_Initial_Urge Q6_Initial_Intent
  /PRINT=TWOTAIL NOSIG
  /MISSING=PAIRWISE.

*#  DISTRACTION (Group2).
USE ALL.
COMPUTE filter_$=(Condition=2).
VARIABLE LABELS filter_$ 'Condition=2 (FILTER)'.
VALUE LABELS filter_$ 0 'Not Selected' 1 'Selected'.
FORMATS filter_$ (f1.0).
FILTER BY filter_$.
EXECUTE.

CORRELATIONS
  /VARIABLES=Q5_Initial_Urge Q6_Initial_Intent
  /PRINT=TWOTAIL NOSIG
  /MISSING=PAIRWISE.

*######################################################################################.
*#
*#  Time to complete interventions and whole experiment
*#
*######################################################################################.

FILTER OFF.
USE ALL.
EXECUTE.

****  Interventions ***************.
DESCRIPTIVES VARIABLES=Q12_PageSubmit Q16_PageSubmit
  /STATISTICS=MEAN STDDEV MIN MAX.

*****  Whole experiment per condition****.

*#  REFLECTION (Group1).
USE ALL.
COMPUTE filter_$=(Condition=1).
VARIABLE LABELS filter_$ 'Condition=1 (FILTER)'.
VALUE LABELS filter_$ 0 'Not Selected' 1 'Selected'.
FORMATS filter_$ (f1.0).
FILTER BY filter_$.
EXECUTE.
DESCRIPTIVES VARIABLES=Durationinseconds
  /STATISTICS=MEAN STDDEV MIN MAX.

*#  DISTRACTION (Group2).
USE ALL.
COMPUTE filter_$=(Condition=2).
VARIABLE LABELS filter_$ 'Condition=2 (FILTER)'.
VALUE LABELS filter_$ 0 'Not Selected' 1 'Selected'.
FORMATS filter_$ (f1.0).
FILTER BY filter_$.
EXECUTE.

DESCRIPTIVES VARIABLES=Durationinseconds
  /STATISTICS=MEAN STDDEV MIN MAX.

*#  CONTROL (Group3).
USE ALL.
COMPUTE filter_$=(Condition=3).
VARIABLE LABELS filter_$ 'Condition=3 (FILTER)'.
VALUE LABELS filter_$ 0 'Not Selected' 1 'Selected'.
FORMATS filter_$ (f1.0).
FILTER BY filter_$.
EXECUTE.

DESCRIPTIVES VARIABLES=Durationinseconds
  /STATISTICS=MEAN STDDEV MIN MAX.

*######################################################################################.
*#
*#   DEMOGRAPHICS.
*#
*######################################################################################.

DESCRIPTIVES VARIABLES=MotivationLevel SelfEfficacy Age Screener_Freq_ImpulseBuying IB_SCALE 
    NFC_SCALE
  /STATISTICS=MEAN STDDEV MIN MAX.

FREQUENCIES VARIABLES=Gender Income MaritialStatus Education Screener_Freq_ImpulseBuying
  /ORDER=ANALYSIS.

GRAPH
  /HISTOGRAM(NORMAL)=Income.

GRAPH
  /HISTOGRAM(NORMAL)=MaritialStatus.

GRAPH
  /HISTOGRAM(NORMAL)=Education.

GRAPH
  /HISTOGRAM(NORMAL)=Screener_Freq_ImpulseBuying.

GRAPH
  /HISTOGRAM(NORMAL)=SelfEfficacy.

*# Multiple response variables: Race, 

MULT RESPONSE GROUPS=$Race (race_white race_hispanic race_black race_nativeamerican race_asian 
    race_pacificislander race_other (1))
  /FREQUENCIES=$Race.

MULT RESPONSE GROUPS=$EmploymentSet (employment_fulltime employment_parttime employment_outlooking 
    employment_outnotlooking employment_stayhomeparent employment_student employment_military 
    employment_retired employment_unablework (1))
  /FREQUENCIES=$EmploymentSet.

*######################################################################################.
*#
*#   Products selected
*#
*######################################################################################.

FREQUENCIES VARIABLES=Q4_ProductText
  /FORMAT=DFREQ
  /ORDER=ANALYSIS.

FREQUENCIES VARIABLES=Prod_Page_Number
  /FORMAT=DFREQ
  /ORDER=ANALYSIS.

*######################################################################################.
*#
*# REFLECTION CONDITION FEEDBACK VARIABLES.
*#
*######################################################################################.

USE ALL.
COMPUTE filter_$=(Condition=1).
VARIABLE LABELS filter_$ 'Condition=1 (FILTER)'.
VALUE LABELS filter_$ 0 'Not Selected' 1 'Selected'.
FORMATS filter_$ (f1.0).
FILTER BY filter_$.
EXECUTE.

DESCRIPTIVES VARIABLES=Q78_ReflectionDifficultyFor Q79ReflectionDifficultyAgainst
  /STATISTICS=MEAN STDDEV MIN MAX.

GRAPH
  /HISTOGRAM(NORMAL)=Q78_ReflectionDifficultyFor.

GRAPH
  /HISTOGRAM(NORMAL)= Q79ReflectionDifficultyAgainst.

*######################################################################################.
*#
*# DISTRACTION CONDITION FEEDBACK VARIABLES.
*#
*######################################################################################.
USE ALL.
COMPUTE filter_$=(Condition=2).
VARIABLE LABELS filter_$ 'Condition=2 (FILTER)'.
VALUE LABELS filter_$ 0 'Not Selected' 1 'Selected'.
FORMATS filter_$ (f1.0).
FILTER BY filter_$.
EXECUTE.

DESCRIPTIVES VARIABLES=Q108_DifficultyCounting Q109_WasDistracted
  /STATISTICS=MEAN STDDEV MIN MAX.

GRAPH
  /HISTOGRAM(NORMAL)= Q108_DifficultyCounting.

*######################################################################################.
*#
*#   Difficulty and time spent on the interventions.

*#
*######################################################################################.

FILTER OFF.
USE ALL.
EXECUTE.

*Any differences in time spent or difficulty between Reflection and Distraction?.
T-TEST GROUPS=Condition(1 2)
  /MISSING=ANALYSIS
  /VARIABLES=InterventionTimeSpent InterventionDifficulty
  /CRITERIA=CI(.95).

*Any differences in difficulty between Reflection: For vs. Against reasons.
T-TEST PAIRS=Q78_ReflectionDifficultyFor WITH Q79ReflectionDifficultyAgainst (PAIRED)
  /CRITERIA=CI(.9500)
  /MISSING=ANALYSIS.

*######################################################################################.
*#
*#   MAIN ANALYSIS: BETWEEN SUBJECTS
*#
*######################################################################################.

*# ######### FELTURGE.
*#   ANOVA with BONF.
ONEWAY DV_Urge BY Condition
  /STATISTICS DESCRIPTIVES 
  /MISSING ANALYSIS
  /POSTHOC=BONFERRONI ALPHA(0.05).

GRAPH
  /BAR(SIMPLE)=MEAN(DV_Urge) BY Condition
  /INTERVAL SE(2.0)
  /TITLE='Felt Urge to Buy Impulsively'.

*# ############# PURCHASSE INTENT. 
*#   ANOVA with BONF.
ONEWAY DV_Intent BY Condition
  /STATISTICS DESCRIPTIVES 
  /MISSING ANALYSIS
  /POSTHOC=BONFERRONI ALPHA(0.05).

GRAPH
  /BAR(SIMPLE)=MEAN(DV_Intent) BY Condition
  /TITLE='Purchase Intent'.

*# #############USING INDEX VALUE (AVERAGE OF INTENT AND URGE) as DV. 
*#   ANOVA with BONF.
ONEWAY DV_POST_INDEX BY Condition
  /STATISTICS DESCRIPTIVES 
  /MISSING ANALYSIS
  /POSTHOC=BONFERRONI ALPHA(0.05).

GRAPH
  /BAR(SIMPLE)=MEAN(DV_POST_INDEX) BY Condition
    /INTERVAL SE(2.0)
  /TITLE='Index'.

*######################################################################################.
*#
*#  WITHIN SUBJECTS
*#
*######################################################################################.

* Assumption testing for paired sample t tests.

*######  REFLECTION (Group1).
USE ALL.
COMPUTE filter_$=(Condition=1).
VARIABLE LABELS filter_$ 'Condition=1 (FILTER)'.
VALUE LABELS filter_$ 0 'Not Selected' 1 'Selected'.
FORMATS filter_$ (f1.0).
FILTER BY filter_$.
EXECUTE.

* METHOD 1: Analsysis for urge and intent individually.
T-TEST PAIRS=Q5_Initial_Urge Q6_Initial_Intent WITH Q24_Grp1_PostUrge Q25_Grp1_PostIntent (PAIRED)
  /CRITERIA=CI(.9500)
  /MISSING=ANALYSIS.

*METHOD 2: Using INDEX.
T-TEST PAIRS=DV_PRE_INDEX WITH DV_POST_INDEX (PAIRED)
  /CRITERIA=CI(.9500)
  /MISSING=ANALYSIS.

*############  DISTRACTION (Group2).
USE ALL.
COMPUTE filter_$=(Condition=2).
VARIABLE LABELS filter_$ 'Condition=2 (FILTER)'.
VALUE LABELS filter_$ 0 'Not Selected' 1 'Selected'.
FORMATS filter_$ (f1.0).
FILTER BY filter_$.
EXECUTE.

* METHOD 1: Analsysis for urge and intent individually.
T-TEST PAIRS=Q5_Initial_Urge Q6_Initial_Intent WITH Q17_Grp2_PostUrge Q18_Grp2_PostIntent (PAIRED)
  /CRITERIA=CI(.9500)
  /MISSING=ANALYSIS.

*METHOD 2: Using INDEX.
T-TEST PAIRS=DV_PRE_INDEX WITH DV_POST_INDEX (PAIRED)
  /CRITERIA=CI(.9500)
  /MISSING=ANALYSIS.

*######################################################################################.
*#
*#   WITHIN-SUBJECTS-- LOOKING ONLY AT HIGH INITIAL URGE.

*#
*######################################################################################.

*#### GREATER THAN  4 ON INITIAL URGE  - PAIRED T TESTS. - REFLECTION ######################.
USE ALL.
COMPUTE filter_$=((Condition=1) & (Q5_Initial_Urge > 4)).
VARIABLE LABELS filter_$ '(Condition=1) & (Q5_Initial_Urge > 4) (FILTER)'.
VALUE LABELS filter_$ 0 'Not Selected' 1 'Selected'.
FORMATS filter_$ (f1.0).
FILTER BY filter_$.
EXECUTE.

* METHOD 1: Analsysis for urge and intent individually.
T-TEST PAIRS=Q5_Initial_Urge Q6_Initial_Intent WITH Q24_Grp1_PostUrge Q25_Grp1_PostIntent (PAIRED)
  /CRITERIA=CI(.9500)
  /MISSING=ANALYSIS.

*METHOD 2: Using INDEX.
T-TEST PAIRS=DV_PRE_INDEX WITH DV_POST_INDEX (PAIRED)
  /CRITERIA=CI(.9500)
  /MISSING=ANALYSIS.

*#### GREATER THAN 4 ON INITIAL URGE - PAIRED T TESTS. - DISTRACTION ######################.

USE ALL.
COMPUTE filter_$=((Condition=2) & (Q5_Initial_Urge > 4)).
VARIABLE LABELS filter_$ '(Condition=2) & (Q5_Initial_Urge > 4) (FILTER)'.
VALUE LABELS filter_$ 0 'Not Selected' 1 'Selected'.
FORMATS filter_$ (f1.0).
FILTER BY filter_$.
EXECUTE.

* METHOD 1: Analsysis for urge and intent individually.
T-TEST PAIRS=Q5_Initial_Urge Q6_Initial_Intent WITH Q17_Grp2_PostUrge Q18_Grp2_PostIntent (PAIRED)
  /CRITERIA=CI(.9500)
  /MISSING=ANALYSIS.

*METHOD 2: Using INDEX.
T-TEST PAIRS=DV_PRE_INDEX WITH DV_POST_INDEX (PAIRED)
  /CRITERIA=CI(.9500)
  /MISSING=ANALYSIS.

*######################################################################################.
*#
*#  WITHIN-SUBJECTS--  LOOKING ONLY AT LOW INITAL URGE.

*#
*######################################################################################.

*#### LESS THAN  4 ON INITIAL URGE  - PAIRED T TESTS. - REFLECTION ######################.
USE ALL.
COMPUTE filter_$=((Condition=1) & (Q5_Initial_Urge < 4)).
VARIABLE LABELS filter_$ '(Condition=1) & (Q5_Initial_Urge < 4) (FILTER)'.
VALUE LABELS filter_$ 0 'Not Selected' 1 'Selected'.
FORMATS filter_$ (f1.0).
FILTER BY filter_$.
EXECUTE.

* METHOD 1: Analsysis for urge and intent individually.
T-TEST PAIRS=Q5_Initial_Urge Q6_Initial_Intent WITH Q24_Grp1_PostUrge Q25_Grp1_PostIntent (PAIRED)
  /CRITERIA=CI(.9500)
  /MISSING=ANALYSIS.

*METHOD 2: Using INDEX.
T-TEST PAIRS=DV_PRE_INDEX WITH DV_POST_INDEX (PAIRED)
  /CRITERIA=CI(.9500)
  /MISSING=ANALYSIS.

*#### LESS THAN 4 ON INITIAL URGE - PAIRED T TESTS. - DISTRACTION ######################.

USE ALL.
COMPUTE filter_$=((Condition=2) & (Q5_Initial_Urge < 4)).
VARIABLE LABELS filter_$ '(Condition=2) & (Q5_Initial_Urge < 4) (FILTER)'.
VALUE LABELS filter_$ 0 'Not Selected' 1 'Selected'.
FORMATS filter_$ (f1.0).
FILTER BY filter_$.
EXECUTE.

* METHOD 1: Analsysis for urge and intent individually.
T-TEST PAIRS=Q5_Initial_Urge Q6_Initial_Intent WITH Q17_Grp2_PostUrge Q18_Grp2_PostIntent (PAIRED)
  /CRITERIA=CI(.9500)
  /MISSING=ANALYSIS.

*METHOD 2: Using INDEX.
T-TEST PAIRS=DV_PRE_INDEX WITH DV_POST_INDEX (PAIRED)
  /CRITERIA=CI(.9500)
  /MISSING=ANALYSIS.

*######################################################################################.
*#
*#   EXPLORATORY ANALYSIS: REGRESSION

*#
*######################################################################################.

FILTER OFF.
USE ALL.
EXECUTE.

*#########Correlations to identify potential IVs in regression. #####.

CORRELATIONS
  /VARIABLES=DV_Urge DV_Intent
  /PRINT=TWOTAIL NOSIG
  /MISSING=PAIRWISE.

CORRELATIONS
  /VARIABLES=IB_SCALE NFC_SCALE MotivationLevel SelfEfficacy Age Income Screener_Freq_ImpulseBuying Education DV_POST_INDEX
  /PRINT=TWOTAIL NOSIG
  /MISSING=PAIRWISE.

*#########Regression using INDEX: Average Intent and Urge, as DV. #####.
*Model 1 based on correlations and theory that gender may make a difference.
REGRESSION
  /MISSING LISTWISE
  /STATISTICS COEFF OUTS R ANOVA COLLIN TOL
  /CRITERIA=PIN(.05) POUT(.10)
  /NOORIGIN 
  /DEPENDENT DV_POST_INDEX
  /METHOD=ENTER SelfEfficacy Male Screener_Freq_ImpulseBuying IB_SCALE ReflectionCondition DistractionCondition Education.

*Model 2: Now drop frequency.
REGRESSION
  /MISSING LISTWISE
  /STATISTICS COEFF OUTS R ANOVA COLLIN TOL
  /CRITERIA=PIN(.05) POUT(.10)
  /NOORIGIN 
  /DEPENDENT DV_POST_INDEX
  /METHOD=ENTER SelfEfficacy Male IB_SCALE ReflectionCondition DistractionCondition Education.

*Model 3: Now drop SE.
REGRESSION
  /MISSING LISTWISE
  /STATISTICS COEFF OUTS R ANOVA COLLIN TOL
  /CRITERIA=PIN(.05) POUT(.10)
  /NOORIGIN 
  /DEPENDENT DV_POST_INDEX
  /METHOD=ENTER Male IB_SCALE ReflectionCondition DistractionCondition Education.

*Model 4: Now drop gender.
REGRESSION
  /MISSING LISTWISE
  /STATISTICS COEFF OUTS R ANOVA COLLIN TOL
  /CRITERIA=PIN(.05) POUT(.10)
  /NOORIGIN 
  /DEPENDENT DV_POST_INDEX
  /METHOD=ENTER IB_SCALE ReflectionCondition DistractionCondition Education.

*Model 5: Now drop edu.
REGRESSION
  /MISSING LISTWISE
  /STATISTICS COEFF OUTS R ANOVA COLLIN TOL
  /CRITERIA=PIN(.05) POUT(.10)
  /NOORIGIN 
  /DEPENDENT DV_POST_INDEX
  /METHOD=ENTER IB_SCALE ReflectionCondition DistractionCondition.

*### INTERACTIONS ###################.

REGRESSION
  /MISSING LISTWISE
  /STATISTICS COEFF OUTS R ANOVA COLLIN TOL
  /CRITERIA=PIN(.05) POUT(.10)
  /NOORIGIN 
  /DEPENDENT DV_POST_INDEX
  /METHOD=ENTER IB_SCALE ReflectionCondition DistractionCondition IBTxReflection.

REGRESSION
  /MISSING LISTWISE
  /STATISTICS COEFF OUTS R ANOVA COLLIN TOL
  /CRITERIA=PIN(.05) POUT(.10)
  /NOORIGIN 
  /DEPENDENT DV_POST_INDEX
  /METHOD=ENTER IB_SCALE ReflectionCondition DistractionCondition IBTxDistraction.

REGRESSION
  /MISSING LISTWISE
  /STATISTICS COEFF OUTS R ANOVA COLLIN TOL
  /CRITERIA=PIN(.05) POUT(.10)
  /NOORIGIN 
  /DEPENDENT DV_POST_INDEX
  /METHOD=ENTER NFC_SCALE IB_SCALE ReflectionCondition DistractionCondition NCFxReflection.

REGRESSION
  /MISSING LISTWISE
  /STATISTICS COEFF OUTS R ANOVA COLLIN TOL
  /CRITERIA=PIN(.05) POUT(.10)
  /NOORIGIN 
  /DEPENDENT DV_POST_INDEX
  /METHOD=ENTER NFC_SCALE IB_SCALE ReflectionCondition DistractionCondition NCFxDistraction.

*######################################################################################.
*#
*#   Descriptive stats the text responses for reflection.
*#
*######################################################################################.

USE ALL.
COMPUTE filter_$=(Condition=1).
VARIABLE LABELS filter_$ 'Condition=1 (FILTER)'.
VALUE LABELS filter_$ 0 'Not Selected' 1 'Selected'.
FORMATS filter_$ (f1.0).
FILTER BY filter_$.
EXECUTE.

DESCRIPTIVES VARIABLES=Total_Chars_AgainstBuying Total_Chars_ForBuying
  /STATISTICS=MEAN STDDEV MIN MAX.

*# Comparing characters generated for and against, paied t-test.
T-TEST PAIRS=Total_Chars_ForBuying WITH Total_Chars_AgainstBuying (PAIRED)
  /CRITERIA=CI(.9500)
  /MISSING=ANALYSIS.

*######################################################################################.
*#
*#   Regression to predict successful reflection.
*#
*######################################################################################.

USE ALL.
COMPUTE filter_$=(Condition=1).
VARIABLE LABELS filter_$ 'Condition=1 (FILTER)'.
VALUE LABELS filter_$ 0 'Not Selected' 1 'Selected'.
FORMATS filter_$ (f1.0).
FILTER BY filter_$.
EXECUTE.

*# DV = Change in urge/intent index.
REGRESSION
  /MISSING LISTWISE
  /STATISTICS COEFF OUTS R ANOVA COLLIN TOL
  /CRITERIA=PIN(.05) POUT(.10)
  /NOORIGIN 
  /DEPENDENT UrgeIntent_DIFF
  /METHOD=ENTER InterventionTimeSpent Total_Chars_ForBuying Total_Chars_AgainstBuying 
    Q78_ReflectionDifficultyFor Q79ReflectionDifficultyAgainst.

*######################################################################################.
*#
*#   DISTRACTION -- calculating accuracy in counting exercise.
*#
*######################################################################################.

USE ALL.
COMPUTE filter_$=(Condition=2).
VARIABLE LABELS filter_$ 'Condition=2 (FILTER)'.
VALUE LABELS filter_$ 0 'Not Selected' 1 'Selected'.
FORMATS filter_$ (f1.0).
FILTER BY filter_$.
EXECUTE.

*# Descriptives of total number correct of counting squares tables.
DESCRIPTIVES VARIABLES= NumberCorrect_TOTAL NumberCorrect_Table1 NumberCorrect_Table2
  /STATISTICS=MEAN STDDEV MIN MAX.

*######################################################################################.
*#
*#   Regression to predict successful distraction.
*#
*######################################################################################.

USE ALL.
COMPUTE filter_$=(Condition=2).
VARIABLE LABELS filter_$ 'Condition=2 (FILTER)'.
VALUE LABELS filter_$ 0 'Not Selected' 1 'Selected'.
FORMATS filter_$ (f1.0).
FILTER BY filter_$.
EXECUTE.

*# DV = Change in urge/intent index.

REGRESSION
  /MISSING LISTWISE
  /STATISTICS COEFF OUTS R ANOVA COLLIN TOL
  /CRITERIA=PIN(.05) POUT(.10)
  /NOORIGIN 
  /DEPENDENT UrgeIntent_DIFF
  /METHOD=ENTER Q109_WasDistracted NumberCorrect_TOTAL TimeSpent_Distraction Q108_DifficultyCounting.

* NEW MODEL TREATING NUM OF CORRECT ROWS AS BINARY VARIABLE.
REGRESSION
  /MISSING LISTWISE
  /STATISTICS COEFF OUTS R ANOVA COLLIN TOL
  /CRITERIA=PIN(.05) POUT(.10)
  /NOORIGIN 
  /DEPENDENT UrgeIntent_DIFF
  /METHOD=ENTER Q109_WasDistracted PerfectCountingScore_YN TimeSpent_Distraction Q108_DifficultyCounting.

*######################################################################################.
*#
*#   Difference in differences: Urge/Intent (INDEX) for conditions 1 and 2 only. 
*#   Formula: Pre-Post.
*#
*######################################################################################.

USE ALL.
COMPUTE filter_$=(Condition=1  | Condition=2).
VARIABLE LABELS filter_$ 'Condition=1  | Condition=2 (FILTER)'.
VALUE LABELS filter_$ 0 'Not Selected' 1 'Selected'.
FORMATS filter_$ (f1.0).
FILTER BY filter_$.
EXECUTE.

*model 10: Regression to predict difference/drop in urge.
REGRESSION
  /MISSING LISTWISE
  /STATISTICS COEFF OUTS R ANOVA COLLIN TOL
  /CRITERIA=PIN(.05) POUT(.10)
  /NOORIGIN 
  /DEPENDENT UrgeIntent_DIFF
  /METHOD=ENTER ReflectionCondition InterventionDifficulty.

*model 11: Regression to predict difference/drop in urge.
REGRESSION
  /MISSING LISTWISE
  /STATISTICS COEFF OUTS R ANOVA COLLIN TOL
  /CRITERIA=PIN(.05) POUT(.10)
  /NOORIGIN 
  /DEPENDENT UrgeIntent_DIFF
  /METHOD=ENTER ReflectionCondition InterventionDifficulty InterventionTimeSpent.

*############## END #######################.