************************************************************************************ ************************************************************************************ ************************************************************************************ ************************************************************************************ *Prepared by Adam Fine on 4.8.20 (#0) *Adapted by CPRF on 1/09/2020 (#1) ************************************************************************************ ************************************************************************************ ************************************************************************************ ************************************************************************************ *Dataset log using "C:\Users\creinde\Documents\RESEARCH\2020\20 03 Coronavirus-measures compliance survey\Data\US\Corona Compliance survey US W1 May LOG.smcl" use "C:\Users\creinde\Documents\RESEARCH\2020\20 03 Coronavirus-measures compliance survey\Data\US\Corona Compliance survey US W1 May.dta" ************************************************************************************** ************************************************************************************** *A. SELECTION CRITERION: * - Only if provided consent * - Both checks correct gen chris_sample_reqs = 1 if Consent == 1 & NChecksRight == 2 tab chris_sample_reqs ************************************************************************************ ************************************************************************************ ************************************************************************************ ************************************************************************************ ************************************************************************************ ************************************************************************************ ************************************************************************************ ************************************************************************************ *0. Identifying Covariates * Explorative regression analyses; all demographics/potential covariates *0.a.1 Descriptive Statistics sum DV_Compliance_SC7 Age i.Gender_Female i.Employed Education i.Corona_care i.Minority i.Insurance SES_before SES_change i.Health_self i.Health_other Trust_Science_SC4 Trust_in_media i.Conservative_01 i.Conservative_other if chris_sample_reqs == 1 *0.a.2 Regression reg DV_Compliance_SC7 Age i.Gender_Female i.Employed Education i.Corona_care i.Minority i.Insurance SES_before SES_change i.Health_self i.Health_other Trust_Science_SC4 Trust_in_media i.Conservative_01 i.Conservative_other if chris_sample_reqs == 1 *0.a.3 Check hettest: Run this right after your regression to apply the Breusch-Pagan / Cook-Weisberg test for heteroskedasticity. *if significant, then you need to run the regression with vce(ro) at the end estat hettest *0.a.4. check vif, to check for for multicollinearity (VIFs >10 are problematic) vif *0.a.5 Regression with vce(ro) reg DV_Compliance_SC7 Age i.Gender_Female i.Employed Education i.Corona_care i.Minority i.Insurance SES_before SES_change i.Health_self i.Health_other Trust_Science_SC4 Trust_in_media i.Conservative_01 i.Conservative_other if chris_sample_reqs == 1, vce(ro) /* *Covariates (based on W1-W3 analysis, step 0.a.5): o Age o Gender_Female o Education o Corona_care o Minority o Health_self o Trust in science */ ************************************************************************************ ************************************************************************************ ************************************************************************************ ************************************************************************************ ************************************************************************************ ************************************************************************************ ************************************************************************************ ************************************************************************************ *1.2 Regression reg DV_Compliance_SC7 CTC_SC7 i.Current_measures Measures_clear Impulsivity_SC4 OTC_SC7 MA_MoralBelief MA_Authority_SC2 NegEmo_SC6 NOO_SC3 NNOO_SC3 OOL_SC12 Costs_SC5 MA_Perc_Threat_SC3 Deterr_SD_Likely_SC2 Deterr_SD_Severe PJE_SC4 SN_SC7 Age i.Gender_Female Education i.Corona_care i.Minority i.Health_self Trust_Science_SC4 if chris_sample_reqs == 1 *1.3 Check hettest: Run this right after your regression to apply the Breusch-Pagan / Cook-Weisberg test for heteroskedasticity. *if significant, then you need to run the regression with vce(ro) at the end estat hettest *1.4. check vif, to check for for multicollinearity (VIFs >10 are problematic) vif *1.5 Regression with vce(ro) reg DV_Compliance_SC7 CTC_SC7 i.Current_measures Measures_clear Impulsivity_SC4 OTC_SC7 MA_MoralBelief MA_Authority_SC2 NegEmo_SC6 NOO_SC3 NNOO_SC3 OOL_SC12 Costs_SC5 MA_Perc_Threat_SC3 Deterr_SD_Likely_SC2 Deterr_SD_Severe PJE_SC4 SN_SC7 Age i.Gender_Female Education i.Corona_care i.Minority i.Health_self Trust_Science_SC4 if chris_sample_reqs == 1, vce(ro) ************************************************************************************ ************************************************************************************ ************************************************************************************ ************************************************************************************ log close clear exit *End of do file ************************************************************************************ ************************************************************************************ ************************************************************************************ ************************************************************************************