{"id":6403,"date":"2020-09-25T12:55:03","date_gmt":"2020-09-25T16:55:03","guid":{"rendered":"https:\/\/blogs.mathworks.com\/cleve\/?p=6403"},"modified":"2020-09-25T12:55:03","modified_gmt":"2020-09-25T16:55:03","slug":"addition-to-svd-and-partisanship-in-the-u-s-senate","status":"publish","type":"post","link":"https:\/\/blogs.mathworks.com\/cleve\/2020\/09\/25\/addition-to-svd-and-partisanship-in-the-u-s-senate\/","title":{"rendered":"Addition to SVD and Partisanship in the U. S. Senate"},"content":{"rendered":"\r\n<div class=\"content\"><!--introduction--><p>I have added this section to <a href=\"https:\/\/blogs.mathworks.com\/cleve\/2020\/08\/23\/svd-quantifies-increasing-partisanship-in-the-u-s-senate\/\">my post<\/a> a few weeks ago about using the SVD to measure partisanship in the United States Senate.<\/p><!--\/introduction--><h3>Contents<\/h3><div><ul><li><a href=\"#455f9024-b415-4ae0-97ae-7c18307e7441\">The Matrices<\/a><\/li><\/ul><\/div><h4>The Matrices<a name=\"455f9024-b415-4ae0-97ae-7c18307e7441\"><\/a><\/h4><p>Here are the matrices, 32 of them, one for each session from 1989 to 2020.  Yellow is \"Yea\" or \"Guilty\", dark blue is \"Nay\" or \"Not Guilty\", and turquoise is not present, abstain or other.<\/p><p><img decoding=\"async\" vspace=\"5\" hspace=\"5\" src=\"http:\/\/blogs.mathworks.com\/cleve\/files\/senate_small.gif\" alt=\"\"> <\/p><script language=\"JavaScript\"> <!-- \r\n    function grabCode_d61f184019f44f9d8a1eb63e0851a6c2() {\r\n        \/\/ Remember the title so we can use it in the new page\r\n        title = document.title;\r\n\r\n        \/\/ Break up these strings so that their presence\r\n        \/\/ in the Javascript doesn't mess up the search for\r\n        \/\/ the MATLAB code.\r\n        t1='d61f184019f44f9d8a1eb63e0851a6c2 ' + '##### ' + 'SOURCE BEGIN' + ' #####';\r\n        t2='##### ' + 'SOURCE END' + ' #####' + ' d61f184019f44f9d8a1eb63e0851a6c2';\r\n    \r\n        b=document.getElementsByTagName('body')[0];\r\n        i1=b.innerHTML.indexOf(t1)+t1.length;\r\n        i2=b.innerHTML.indexOf(t2);\r\n \r\n        code_string = b.innerHTML.substring(i1, i2);\r\n        code_string = code_string.replace(\/REPLACE_WITH_DASH_DASH\/g,'--');\r\n\r\n        \/\/ Use \/x3C\/g instead of the less-than character to avoid errors \r\n        \/\/ in the XML parser.\r\n        \/\/ Use '\\x26#60;' instead of '<' so that the XML parser\r\n        \/\/ doesn't go ahead and substitute the less-than character. \r\n        code_string = code_string.replace(\/\\x3C\/g, '\\x26#60;');\r\n\r\n        copyright = 'Copyright 2020 The MathWorks, Inc.';\r\n\r\n        w = window.open();\r\n        d = w.document;\r\n        d.write('<pre>\\n');\r\n        d.write(code_string);\r\n\r\n        \/\/ Add copyright line at the bottom if specified.\r\n        if (copyright.length > 0) {\r\n            d.writeln('');\r\n            d.writeln('%%');\r\n            if (copyright.length > 0) {\r\n                d.writeln('% _' + copyright + '_');\r\n            }\r\n        }\r\n\r\n        d.write('<\/pre>\\n');\r\n\r\n        d.title = title + ' (MATLAB code)';\r\n        d.close();\r\n    }   \r\n     --> <\/script><p style=\"text-align: right; font-size: xx-small; font-weight:lighter;   font-style: italic; color: gray\"><br><a href=\"javascript:grabCode_d61f184019f44f9d8a1eb63e0851a6c2()\"><span style=\"font-size: x-small;        font-style: italic;\">Get \r\n      the MATLAB code <noscript>(requires JavaScript)<\/noscript><\/span><\/a><br><br>\r\n      Published with MATLAB&reg; R2020b<br><\/p><\/div><!--\r\nd61f184019f44f9d8a1eb63e0851a6c2 ##### SOURCE BEGIN #####\r\n%% Addition to SVD and Partisanship in the U. S. Senate\r\n% I have added this section to\r\n% <https:\/\/blogs.mathworks.com\/cleve\/2020\/08\/23\/svd-quantifies-increasing-partisanship-in-the-u-s-senate\/\r\n% my post> a few weeks ago about using the SVD to measure partisanship\r\n% in the United States Senate.\r\n\r\n%% The Matrices\r\n% Here are the matrices, 32 of them, one for each session from 1989 to\r\n% 2020.  Yellow is \"Yea\" or \"Guilty\", dark blue is \"Nay\" or \"Not Guilty\",\r\n% and turquoise is not present, abstain or other.\r\n%\r\n% <<senate_small.gif>>\r\n%\r\n% \r\n##### SOURCE END ##### d61f184019f44f9d8a1eb63e0851a6c2\r\n-->","protected":false},"excerpt":{"rendered":"<div class=\"overview-image\"><img src=\"https:\/\/blogs.mathworks.com\/cleve\/files\/partisanship.png\" class=\"img-responsive attachment-post-thumbnail size-post-thumbnail wp-post-image\" alt=\"\" decoding=\"async\" loading=\"lazy\" \/><\/div><!--introduction--><p>I have added this section to <a href=\"https:\/\/blogs.mathworks.com\/cleve\/2020\/08\/23\/svd-quantifies-increasing-partisanship-in-the-u-s-senate\/\">my post<\/a> a few weeks ago about using the SVD to measure partisanship in the United States Senate.... <a class=\"read-more\" href=\"https:\/\/blogs.mathworks.com\/cleve\/2020\/09\/25\/addition-to-svd-and-partisanship-in-the-u-s-senate\/\">read more >><\/a><\/p>","protected":false},"author":78,"featured_media":6380,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":[],"categories":[23,4,30],"tags":[],"_links":{"self":[{"href":"https:\/\/blogs.mathworks.com\/cleve\/wp-json\/wp\/v2\/posts\/6403"}],"collection":[{"href":"https:\/\/blogs.mathworks.com\/cleve\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blogs.mathworks.com\/cleve\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blogs.mathworks.com\/cleve\/wp-json\/wp\/v2\/users\/78"}],"replies":[{"embeddable":true,"href":"https:\/\/blogs.mathworks.com\/cleve\/wp-json\/wp\/v2\/comments?post=6403"}],"version-history":[{"count":1,"href":"https:\/\/blogs.mathworks.com\/cleve\/wp-json\/wp\/v2\/posts\/6403\/revisions"}],"predecessor-version":[{"id":6405,"href":"https:\/\/blogs.mathworks.com\/cleve\/wp-json\/wp\/v2\/posts\/6403\/revisions\/6405"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/blogs.mathworks.com\/cleve\/wp-json\/wp\/v2\/media\/6380"}],"wp:attachment":[{"href":"https:\/\/blogs.mathworks.com\/cleve\/wp-json\/wp\/v2\/media?parent=6403"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blogs.mathworks.com\/cleve\/wp-json\/wp\/v2\/categories?post=6403"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blogs.mathworks.com\/cleve\/wp-json\/wp\/v2\/tags?post=6403"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}