Paste this text into your Stata do file editor

****************************************************************************************
*** Do-file for reproducing 

* Wimmer, Andreas and Yuval Feinstein, The Rise of the Nation-State across the World, 1816 to 2001, American Sociological Review 75(5) 764–790, 2010 

*** Please cite this article when using the dataset

*************************************************************************************

*** Table 2 ***

logit autonNS L1.rr_std middleeast eeurop africa asia oceania lamerica csyear* if good==1, cluster(cowcode)

logit autonNS L1.constborder literacy middleeast eeurop africa asia oceania lamerica csyear* if good==1, cluster(cowcode)

logit autonNS L1.directrule2 middleeast eeurop africa asia oceania lamerica csyear* if good==1, cluste(cowcode)

logit autonNS tot_ns ns5emp nsf5neigh L1.numigocenter middleeast eeurop africa asia oceania lamerica csyear* if good==1, cluste(cowcode)

logit autonNS ns5emp nsf5neigh L1.natorgyesno natorglag L1.centercap L1.centerimdep L1.impdep L1.warsinemp L1.numwar middleeast eeurop africa asia oceania lamerica csyear* if good==1, cluste(cowcode)

xtlogit autonNS ns5emp nsf5neigh L1.natorgyesno natorglag L1.centercap L1.centerimdep L1.impdep  L1.warsinemp L1.numwar csyear* if good==1,fe

logit autonNS ns5emp ns5neighonly L1.natorgyesno natorglag L1.centercap L1.centerimdep L1.impdep   L1.warsinemp L1.numwar middleeast eeurop africa asia oceania lamerica csyear* if good==1 & pastNS==0, cluste(cowcode)

*** Table 3 ***

logit autonNS ns5emp nsf5neigh natorglag L1.centerimdep L1.warsinemp L1.numwar csyear* if good==1 & year<1915, cluste(cowcode)

logit autonNS ns5emp nsf5neigh natorglag L1.centerimdep L1.warsinemp L1.numwar csyear* if good==1 & year>1914, cluste(cowcode)

xi: logit autonNS ns5emp nsf5neigh natorglag L1.centerimdep L1.warsinemp L1.numwar i.time_cat if good==1, cluste(cowcode)

logit autonNS ns5emp nsf5neigh natorglag L1.centerimdep L1.warsinemp L1.numwar L2.indepstate L1.otherempires L1.Spain L1.KKAustria L1.Romanov L1.Ottoman L1.Yugoslavia L1.SU L1.French L1.British L1.Netherlands L1.Portugal csyear* if good==1, cluste(cowcode)