#delimit;
/**first generate new variable**/
gen treatiespartofdomlaw2=treatiespartofdomlaw;
replace treatiespartofdomlaw2=5 if (treatiesrelativestatus>=5 & treatiespartofdomlaw==0);
/*"Only five other countries in the world-Algeria, Burundi, Iraq, Micronesia, and the Philippines-
require a supermajority vote in their legislature in order for the country to ratify a treaty"*/
list country leg_lowhouse leg_upphouse treaties_lowhouse treaties_upphouse treatiespartofdomlaw2
if (treaties_lowhouse>2 | treaties_upphouse>2);
/**list countries where the voting requirements in both the upper and lower house are the same for
domestic law and for treaties: ". One hundred and twenty-four states currently have voting thresholds
in the legislature for treaties that are the same as those for domestic laws."**/
list country leg_lowhouse leg_upphouse treaties_lowhouse treaties_upphouse treatiespartofdomlaw2
if (treaties_lowhouse==leg_lowhouse & treaties_upphouse==leg_upphouse)& treaties_lowhouse!=.;
/**list countries if the voting requirements for either house are different for domestic law and for
treaties: "By contrast, fifty-nine (including the United States) provide for different voting
thresholds in either house of the legislature for treaties than for domestic legislation"**/
list country leg_lowhouse leg_upphouse treaties_lowhouse treaties_upphouse treatiespartofdomlaw2
if (treaties_lowhouse!=leg_lowhouse | treaties_upphouse!=leg_upphouse) & treaties_lowhouse!=-77 ;
/**list countries where the voting requirements in either the upper or lower house are different,
and treaties are automatically incorporated into domestic law in some way:"Of these, only ten
(again, including the United States) explicitly provide in their constitution for some level of
automatic incorporation of international law into domestic law. Those countries are listed in Table 3**/
list country leg_lowhouse leg_upphouse treaties_lowhouse treaties_upphouse treatiespartofdomlaw2
if (treaties_lowhouse!=leg_lowhouse | treaties_upphouse!=leg_upphouse) & treaties_lowhouse!=-77 & treatiespartofdomlaw2>0;
/**list all countries where treaties are automatically incorporated into domestic law in some way: "There are, in total,
fifty states that explicitly provide in their constitution for some level of automatic incorporation of
international law into domestic law, as does the United States"**/
list country treatiespartofdomlaw if treatiespartofdomlaw>0 & treatiespartofdomlaw!=.;
/**list all countries where treaties are given relative status of 5 or 6: "In addition,
twenty-six states that do not explicitly provide that treaties hae any independent domestic legal
force law nonetheless give treaties status in relation to ordinary domestic legislation
(ranging from requiring that ordinary legislation be interpreted in conformity with ratified
human rights treaties to explicitly establishing general supremacy of treaties over ordinary legislation)."**/
list country treatiespartofdomlaw treatiesrelativestatus if treatiesrelativestatus>1 & treatiespartofdomlaw==0;