{"id":2111,"date":"2015-03-18T18:44:25","date_gmt":"2015-03-18T23:44:25","guid":{"rendered":"http:\/\/www.ssc.wisc.edu\/~jfrees\/?page_id=2111"},"modified":"2015-08-25T12:41:33","modified_gmt":"2015-08-25T17:41:33","slug":"11-1-binary-dependent-variables","status":"publish","type":"page","link":"https:\/\/users.ssc.wisc.edu\/~ewfrees\/regression\/chapter-11-categorical-dependent-variables\/11-1-binary-dependent-variables\/","title":{"rendered":"11.1 Binary Dependent Variables"},"content":{"rendered":"<p><div class=\"scbb-content-box scbb-content-box-gray\">In this section, you learn how to:\n<ul>\n<li>Describe the Bernoulli distribution<\/li>\n<li>Describe the linear probability model and its limitations<\/li>\n<\/ul>\n<h2 style=\"text-align: center\"><a href=\"http:\/\/flash.bus.wisc.edu\/data\/act_sci\/Frees\/Regression2015\/Chapter11\/BinaryDepVar\/BinaryDepVar.html\" target=\"_blank\">Video Overview of the Section <\/a><a href=\"http:\/\/flash.bus.wisc.edu\/data\/act_sci\/Frees\/Regression2015\/Chapter11\/BinaryDepVar\/BinaryDepVar.mp4\" target=\"_blank\">(<em>Alternative .mp4 Version &#8211; 6:39 min<\/em>)<\/a><\/h2>\n<p><\/p><\/div><br \/>\nWe have already introduced binary variables as a special type of discrete variable that can be used to indicate whether or not a subject has a characteristic of interest, such as gender for a person or ownership of a captive insurance company for a firm. Binary variables also describe whether or not an event of interest has occurred, such as an accident. A model with a binary dependent variable allows one to predict whether an event has occurred or a subject has a characteristic of interest.<\/p>\n<p><strong>Example: MEPS Expenditures.<\/strong> Section 11.4 will describe an extensive database from the Medical Expenditure Panel Survey (MEPS) on hospitalization utilization and expenditures. For these data, we will consider<br \/>\n\\begin{eqnarray*}\\small<br \/>\ny_i = \\left\\{<br \/>\n\\begin{array}{ll}<br \/>\n1 &amp; i\\text{th person was hospitalized during the period} \\\\<br \/>\n0 &amp; \\text{otherwise}<br \/>\n\\end{array}<br \/>\n\\right. .<br \/>\n\\end{eqnarray*} There are <em>n<\/em>=2,000 persons in this sample, distributed as:<br \/>\n\\begin{matrix}{\\text{Table 11.1 Hospitalization by Gender}} \\\\ \\small<br \/>\n\\begin{array}{ll|ll}\\hline<br \/>\n&amp; &amp; \\text{Male} &amp; \\text{Female} \\\\ \\hline<br \/>\n\\text{Not hospitalized} &amp; y=0 &amp; 902 (95.3\\%) &amp; ~~~~941 (89.3\\%) \\\\<br \/>\n\\text{Hospitalized} &amp; y=1 &amp; ~~44 ( 4.7\\%) &amp; ~~~~113 (10.7\\%) \\\\<br \/>\n\\text{Total} &amp; &amp; 946 &amp; 1,054 \\\\ \\hline<br \/>\n\\end{array}<br \/>\n\\end{matrix} Table 11.1 suggests that gender has an important influence on whether someone becomes hospitalized.<\/p>\n<h2 style=\"text-align: center;\" ><a href=\"javascript:toggle('toggleText11.1d2','displayText11.1d2');\"><i><strong>R Code and Output for Table 11.1<\/strong><\/i><\/a><\/h2>\n<div id=\"toggleText11.1d2\" style=\"display: none;\">\n<pre><strong>R-Code<\/strong>\r\nHexpend &lt;- read.table(file=\"http:\/\/instruction.bus.wisc.edu\/jfrees\/jfreesbooks\/Regression%20Modeling\/BookWebDec2010\/CSVData\/HealthExpend.csv\", header=TRUE, sep=\",\")\r\nattach(Hexpend)\r\nPOSEXP &lt;- 1*(EXPENDIP>0)\r\nmytable &lt;- table(POSEXP,GENDER)\r\nmytable \r\nprop.table(mytable, 2)<\/pre>\n<pre><strong>R-Code Output<\/strong>\r\n      GENDER\r\nPOSEXP   0   1\r\n     0 902 941\r\n     1  44 113\r\n\r\n      GENDER\r\nPOSEXP      0      1\r\n     0 0.9535 0.8928\r\n     1 0.0465 0.1072\r\n<\/pre>\n<\/div>\n<p>Like the linear regression techniques introduced in prior chapters, we are interested in using characteristics of a person, such as their age, sex, education, income and prior health status, to help explain the dependent variable <em>y<\/em>. Unlike the prior chapters, now the dependent variable is discrete and not even approximately normally distributed. In limited circumstances, linear regression can be used with binary dependent variables &#8211; this application is known as a <em>linear probability model<\/em>.<\/p>\n<p><div class=\"alignleft\"><a href=\"https:\/\/users.ssc.wisc.edu\/~ewfrees\/regression\/chapter-11-categorical-dependent-variables\/\" title=\"Chapter 11. Categorical Dependent Variables\">&#9668 Previous page<\/a><\/div><div class=\"alignright\"><a href=\"https:\/\/users.ssc.wisc.edu\/~ewfrees\/regression\/chapter-11-categorical-dependent-variables\/11-1-binary-dependent-variables\/linear-probability-models\/\" title=\"Protected: Linear probability models\">Next page &#9658<\/a><\/div><\/p>\n","protected":false},"excerpt":{"rendered":"<p>We have already introduced binary variables as a special type of discrete variable that can be used to indicate whether or not a subject has a characteristic of interest, such as gender for a person &hellip;<\/p>\n","protected":false},"author":1,"featured_media":0,"parent":2107,"menu_order":0,"comment_status":"closed","ping_status":"open","template":"","meta":{"jetpack_post_was_ever_published":false},"jetpack_sharing_enabled":true,"jetpack_shortlink":"https:\/\/wp.me\/P8cLPd-y3","acf":[],"_links":{"self":[{"href":"https:\/\/users.ssc.wisc.edu\/~ewfrees\/wp-json\/wp\/v2\/pages\/2111"}],"collection":[{"href":"https:\/\/users.ssc.wisc.edu\/~ewfrees\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/users.ssc.wisc.edu\/~ewfrees\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/users.ssc.wisc.edu\/~ewfrees\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/users.ssc.wisc.edu\/~ewfrees\/wp-json\/wp\/v2\/comments?post=2111"}],"version-history":[{"count":56,"href":"https:\/\/users.ssc.wisc.edu\/~ewfrees\/wp-json\/wp\/v2\/pages\/2111\/revisions"}],"predecessor-version":[{"id":3004,"href":"https:\/\/users.ssc.wisc.edu\/~ewfrees\/wp-json\/wp\/v2\/pages\/2111\/revisions\/3004"}],"up":[{"embeddable":true,"href":"https:\/\/users.ssc.wisc.edu\/~ewfrees\/wp-json\/wp\/v2\/pages\/2107"}],"wp:attachment":[{"href":"https:\/\/users.ssc.wisc.edu\/~ewfrees\/wp-json\/wp\/v2\/media?parent=2111"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}