*** Do-file for testing hypothesis of frame *** influence on performed generosity in TrustGame * * 1) we want to perform serie of models and * compare them * 2) The first model will cover just control variables, * the second control + generosity of A, * the third the second model + frame, * the last the third an interaction of * frame and generosity of A * * 2017-03-09 FdSS created * 2017-04-06 FdSS updated * // Doplneny testy na radcich 80 a 81 version 11 * Setting working directory capture cd C:\!KA1\ capture cd F:\!KA1\ capture cd G:\!KA1\ capture cd K:\!KA1\ capture cd L:\!KA1\ capture cd "/Volumes/NO NAME/!KA1" * Clearing the data with external do-file * (In case you need to do data management loud * please, un-asterix the following command) *do egd-dataManagement run egd-dataManagement * Intitializing log-file capture log close log using egd-anal_2017-04-06, text replace * Loading the data use egdClear, clear * We have to do additional data management, * we need to prepare binary variable which * indicates whether transaction pays-off the A. gen paysOff = 1 if genA < genB recode paysOff (. = 0) * and labels... lab var paysOff "Transaction pays A off" lab def yn 0 "no" 1 "yes" lab val paysOff yn tab paysOff ************************************************ * control model xi: logit paysOff i.group i.round est store control * M1 xi: logit paysOff i.group i.round i.frame est store M1 * M2 xi: logit paysOff i.group i.round genA est store M2 * M3 xi: logit paysOff i.group i.round i.frame genA est store M3 * M4 xi: logit paysOff i.group i.round frame##c.genA est store M4 * frame model xi: logit paysOff i.frame est store Mframe * frame vs. generosity model xi: logit paysOff i.frame genA est store MFG estat gof, group(6) table estat clas,cutoff(0.54) * MFG with interaction xi: logit paysOff frame##c.genA est store MFGi * MFG with group xi: logit paysOff i.frame genA i.group est store MFGG * MFG with group and interaction xi: logit paysOff frame##group genA est store MFGGi1 * MFG with group and interaction xi: logit paysOff i.frame group##c.genA est store MFGGi2 *** model comparisons lrtest M1 control lrtest M2 control lrtest M3 M1 lrtest M3 M2 lrtest M4 M3 lrtest M1 Mframe lrtest MFG Mframe lrtest MFGi MFG lrtest MFGG MFG lrtest MFGGi1 MFGG lrtest MFGGi2 MFGG lrtest M3 MFG est stat control M1 M2 M3 M4 Mframe MFG MFGi /// MFGG MFGGi1 MFGGi2 log close exit