| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| |
|
| |
|
| |
|
| |
|
| |
|
| | global clean "C:\Users\axxe.1\Documents\CenterOpenScience\OBrien_AmSocioRev_2015_AxxeReplication\GSSreplication_clean.dta"
|
| |
|
| |
|
| | use "C:\Users\axxe.1\Documents\CenterOpenScience\OBrien_AmSocioRev_2015_AxxeReplication\GSSreplication.dta", clear
|
| |
|
| |
|
| | rename *, lower
|
| |
|
| |
|
| | global binary "hotcore radioact boyorgrl lasers electron viruses earthsun condrift bigbang evolved expdesgn odds1 odds2"
|
| |
|
| | foreach i in $binary{
|
| | recode `i' 1=. 5=., gen(`i'_clean)
|
| | }
|
| |
|
| |
|
| | global true "hotcore boyorgrl electron earthsun condrift bigbang evolved odds2"
|
| | global false "radioact lasers viruses expdesgn odds1"
|
| |
|
| | foreach i in $true{
|
| | recode `i'_clean 2=1 3=0 4=0
|
| | }
|
| |
|
| | foreach i in $false{
|
| | recode `i'_clean 3=1 2=0 4=0
|
| | }
|
| |
|
| |
|
| | foreach i in $binary {
|
| | tab `i' `i'_clean, m
|
| | }
|
| |
|
| |
|
| | recode scistudy 1=. 5=. 6=., gen(scistudy_clean)
|
| |
|
| |
|
| | tab scistudy scistudy_clean, m
|
| |
|
| |
|
| |
|
| | global scales "nextgen toofast advfront scibnfts"
|
| | foreach i in nextgen toofast advfront {
|
| | recode `i' 1=. 2=1 3=2 4=3 5=4 6=. 7=., gen(`i'_clean)
|
| | }
|
| |
|
| | foreach i in scibnfts {
|
| | recode `i' 1=. 2=4 3=2 4=0 5=. 6=., gen(`i'_clean)
|
| | }
|
| |
|
| |
|
| | recode toofast_clean 4=1 3=2 2=3 1=4
|
| |
|
| |
|
| | foreach i in $scales {
|
| | tab `i' `i'_clean
|
| | }
|
| |
|
| |
|
| | recode bible 1=. 2=1 3=2 4=3 5=. 6=. 7=., gen(bible_clean)
|
| |
|
| |
|
| | recode reliten 1=. 2=4 3=3 4=2 5=1 6=. 7=., gen(reliten_clean)
|
| |
|
| |
|
| | tab reliten reliten_clean
|
| |
|
| | save $clean, replace
|
| |
|
| |
|
| |
|
| |
|
| |
|
| | use $clean, clear
|
| |
|
| | keep if year == 2006 | year == 2008 | year == 2010
|
| |
|
| | global vars_clean "hotcore_clean radioact_clean boyorgrl_clean lasers_clean electron_clean viruses_clean earthsun_clean condrift_clean bigbang_clean evolved_clean expdesgn_clean odds1_clean odds2_clean scistudy_clean nextgen_clean toofast_clean advfront_clean scibnfts_clean bible_clean reliten_clean"
|
| |
|
| | egen nmis=rmiss($vars_clean)
|
| | tab nmis, m
|
| |
|
| | keep if nmis == 0
|
| | tab year
|
| |
|
| |
|
| |
|
| |
|
| |
|
| | log using OBrienReplication_Axxe_20201012.txt, text replace
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| | use $clean, clear
|
| |
|
| |
|
| | keep if year > 2010
|
| |
|
| |
|
| | egen nmis=rmiss($vars_clean)
|
| | tab nmis, m
|
| | keep if nmis == 0
|
| |
|
| |
|
| | quietly gsem (hotcore_clean radioact_clean boyorgrl_clean lasers_clean electron_clean viruses_clean earthsun_clean condrift_clean bigbang_clean evolved_clean expdesgn_clean odds1_clean odds2_clean <- , logit)
|
| | ( bible_clean <- , mlogit)
|
| | ( nextgen_clean toofast_clean advfront_clean scibnfts_clean reliten_clean scistudy_clean <- , ologit) [pweight = wtss], lclass(C 2) nonrtolerance startvalues(randomid, draws(15) seed(12345)) nodvheader nocapslatent em(iter(5))
|
| |
|
| | est store lc2
|
| |
|
| | quietly gsem (hotcore_clean radioact_clean boyorgrl_clean lasers_clean electron_clean viruses_clean earthsun_clean condrift_clean bigbang_clean evolved_clean expdesgn_clean odds1_clean odds2_clean <- , logit)
|
| | ( bible_clean <- , mlogit)
|
| | ( nextgen_clean toofast_clean advfront_clean scibnfts_clean reliten_clean scistudy_clean <- , ologit), lclass(C 4) nonrtolerance startvalues(randomid, draws(15) seed(12345)) nodvheader nocapslatent em(iter(5))
|
| |
|
| | est store lc4
|
| |
|
| | quietly gsem (hotcore_clean radioact_clean boyorgrl_clean lasers_clean electron_clean viruses_clean earthsun_clean condrift_clean bigbang_clean evolved_clean expdesgn_clean odds1_clean odds2_clean <- , logit)
|
| | ( bible_clean <- , mlogit)
|
| | ( nextgen_clean toofast_clean advfront_clean scibnfts_clean reliten_clean scistudy_clean <- , ologit) [pweight = wtss], lclass(C 3) nonrtolerance startvalues(randomid, draws(15) seed(12345)) nodvheader nocapslatent em(iter(5))
|
| |
|
| | est store lc3
|
| |
|
| | estimates stats lc2 lc3 lc4
|
| |
|
| |
|
| | predict classpost*, classposteriorpr
|
| |
|
| |
|
| | egen max = rowmax(classpost*)
|
| | gen predclass = 1 if classpost1 == max
|
| | replace predclass = 2 if classpost2 == max
|
| | replace predclass = 3 if classpost3 ==max
|
| |
|
| |
|
| | foreach i in $vars_clean {
|
| | mean `i', over(predclass)
|
| | }
|
| |
|
| | tab bible_clean if predclass == 1
|
| | tab bible_clean if predclass == 2
|
| | tab bible_clean if predclass == 3
|
| |
|
| |
|
| | label define classes 1"Traditional" 2"Modern" 3"Post-secular"
|
| | label values predclass classes
|
| |
|
| |
|
| | gen PostsecVsTrad = 1 if predclass == 3
|
| | replace PostsecVsTrad = 0 if predclass == 1
|
| | label define posttrad 0"Traditional" 1"Post-secular"
|
| | label values PostsecVsTrad posttrad
|
| |
|
| |
|
| | ttest evolved_clean, by(PostsecVsTrad)
|
| |
|
| |
|
| |
|
| | use $clean, clear
|
| |
|
| |
|
| | egen nmis=rmiss($vars_clean)
|
| | tab nmis, m
|
| | keep if nmis == 0
|
| |
|
| |
|
| | quietly gsem (hotcore_clean radioact_clean boyorgrl_clean lasers_clean electron_clean viruses_clean earthsun_clean condrift_clean bigbang_clean evolved_clean expdesgn_clean odds1_clean odds2_clean <- , logit)
|
| | ( bible_clean <- , mlogit)
|
| | ( nextgen_clean toofast_clean advfront_clean scibnfts_clean reliten_clean scistudy_clean <- , ologit) [pweight = wtss], lclass(C 2) nonrtolerance startvalues(randomid, draws(15) seed(12345)) nodvheader nocapslatent em(iter(5))
|
| |
|
| | est store lc2
|
| |
|
| | quietly gsem (hotcore_clean radioact_clean boyorgrl_clean lasers_clean electron_clean viruses_clean earthsun_clean condrift_clean bigbang_clean evolved_clean expdesgn_clean odds1_clean odds2_clean <- , logit)
|
| | ( bible_clean <- , mlogit)
|
| | ( nextgen_clean toofast_clean advfront_clean scibnfts_clean reliten_clean scistudy_clean <- , ologit), lclass(C 4) nonrtolerance startvalues(randomid, draws(15) seed(12345)) nodvheader nocapslatent em(iter(5))
|
| |
|
| | est store lc4
|
| |
|
| | quietly gsem (hotcore_clean radioact_clean boyorgrl_clean lasers_clean electron_clean viruses_clean earthsun_clean condrift_clean bigbang_clean evolved_clean expdesgn_clean odds1_clean odds2_clean <- , logit)
|
| | ( bible_clean <- , mlogit)
|
| | ( nextgen_clean toofast_clean advfront_clean scibnfts_clean reliten_clean scistudy_clean <- , ologit) [pweight = wtss], lclass(C 3) nonrtolerance startvalues(randomid, draws(15) seed(12345)) nodvheader nocapslatent em(iter(5))
|
| |
|
| | est store lc3
|
| |
|
| | estimates stats lc2 lc3 lc4
|
| |
|
| |
|
| | predict classpost*, classposteriorpr
|
| |
|
| |
|
| | egen max = rowmax(classpost*)
|
| | gen predclass = 1 if classpost1 == max
|
| | replace predclass = 2 if classpost2 == max
|
| | replace predclass = 3 if classpost3 ==max
|
| |
|
| |
|
| | foreach i in $vars_clean {
|
| | mean `i', over(predclass)
|
| | }
|
| |
|
| | tab bible_clean if predclass == 1
|
| | tab bible_clean if predclass == 2
|
| | tab bible_clean if predclass == 3
|
| |
|
| |
|
| | label define classes 1"Modern" 2"Traditionalist" 3"Post-secular"
|
| | label values predclass classes
|
| |
|
| |
|
| | gen PostsecVsTrad = 1 if predclass == 3
|
| | replace PostsecVsTrad = 0 if predclass == 2
|
| | label values PostsecVsTrad posttrad
|
| |
|
| |
|
| | ttest evolved_clean, by(PostsecVsTrad)
|
| |
|
| |
|
| |
|
| | use $clean, clear
|
| |
|
| | keep if year <= 2010
|
| |
|
| |
|
| | egen nmis=rmiss($vars_clean)
|
| | tab nmis, m
|
| | keep if nmis == 0
|
| |
|
| |
|
| | quietly gsem (hotcore_clean radioact_clean boyorgrl_clean lasers_clean electron_clean viruses_clean earthsun_clean condrift_clean bigbang_clean evolved_clean expdesgn_clean odds1_clean odds2_clean <- , logit)
|
| | ( bible_clean <- , mlogit)
|
| | ( nextgen_clean toofast_clean advfront_clean scibnfts_clean reliten_clean scistudy_clean <- , ologit) [pweight = wtss], lclass(C 2) nonrtolerance startvalues(randomid, draws(15) seed(12345)) nodvheader nocapslatent em(iter(5))
|
| |
|
| | est store lc2
|
| |
|
| | quietly gsem (hotcore_clean radioact_clean boyorgrl_clean lasers_clean electron_clean viruses_clean earthsun_clean condrift_clean bigbang_clean evolved_clean expdesgn_clean odds1_clean odds2_clean <- , logit)
|
| | ( bible_clean <- , mlogit)
|
| | ( nextgen_clean toofast_clean advfront_clean scibnfts_clean reliten_clean scistudy_clean <- , ologit), lclass(C 4) nonrtolerance startvalues(randomid, draws(15) seed(12345)) nodvheader nocapslatent em(iter(5))
|
| |
|
| | est store lc4
|
| |
|
| | quietly gsem (hotcore_clean radioact_clean boyorgrl_clean lasers_clean electron_clean viruses_clean earthsun_clean condrift_clean bigbang_clean evolved_clean expdesgn_clean odds1_clean odds2_clean <- , logit)
|
| | ( bible_clean <- , mlogit)
|
| | ( nextgen_clean toofast_clean advfront_clean scibnfts_clean reliten_clean scistudy_clean <- , ologit) [pweight = wtss], lclass(C 3) nonrtolerance startvalues(randomid, draws(15) seed(12345)) nodvheader nocapslatent em(iter(5))
|
| |
|
| | est store lc3
|
| |
|
| | estimates stats lc2 lc3 lc4
|
| |
|
| |
|
| |
|
| | predict classpost*, classposteriorpr
|
| |
|
| |
|
| | egen max = rowmax(classpost*)
|
| | gen predclass = 1 if classpost1 == max
|
| | replace predclass = 2 if classpost2 == max
|
| | replace predclass = 3 if classpost3 ==max
|
| |
|
| |
|
| | foreach i in $vars_clean {
|
| | mean `i', over(predclass)
|
| | }
|
| |
|
| | tab bible_clean if predclass == 1
|
| | tab bible_clean if predclass == 2
|
| | tab bible_clean if predclass == 3
|
| |
|
| |
|
| | label define classes 1"Post-secular" 2"Traditional" 3"Modern"
|
| | label values predclass classes
|
| |
|
| |
|
| | gen PostsecVsTrad = 1 if predclass == 1
|
| | replace PostsecVsTrad = 0 if predclass == 2
|
| | label values PostsecVsTrad posttrad
|
| |
|
| |
|
| | ttest evolved_clean, by(PostsecVsTrad)
|
| |
|
| |
|
| | log close
|
| |
|
| |
|
| |
|