{"id":1493,"date":"2023-06-22T02:36:55","date_gmt":"2023-06-22T02:36:55","guid":{"rendered":"https:\/\/content.one.lumenlearning.com\/introstatstest\/chapter\/indicator-variable-fresh-take\/"},"modified":"2025-05-17T02:46:03","modified_gmt":"2025-05-17T02:46:03","slug":"indicator-variable-fresh-take","status":"publish","type":"chapter","link":"https:\/\/content.one.lumenlearning.com\/introstatstest\/chapter\/indicator-variable-fresh-take\/","title":{"raw":"Indicator Variable - Fresh Take","rendered":"Indicator Variable &#8211; Fresh Take"},"content":{"raw":"<section class=\"textbox learningGoals\">\r\n<ul>\r\n\t<li><span data-sheets-value=\"{&quot;1&quot;:2,&quot;2&quot;:&quot;Define what an indicator variable is&quot;}\" data-sheets-userformat=\"{&quot;2&quot;:4609,&quot;3&quot;:{&quot;1&quot;:0},&quot;12&quot;:0,&quot;15&quot;:&quot;Calibri&quot;}\">Know what an indicator variable is<\/span><\/li>\r\n\t<li><span data-sheets-value=\"{&quot;1&quot;:2,&quot;2&quot;:&quot;Find and describe an appropriate multiple linear regression model equation with categorical predictors&quot;}\" data-sheets-userformat=\"{&quot;2&quot;:4609,&quot;3&quot;:{&quot;1&quot;:0},&quot;12&quot;:0,&quot;15&quot;:&quot;Calibri&quot;}\">Find and describe an appropriate multiple linear regression model equation with categorical predictors<\/span><\/li>\r\n<\/ul>\r\n<\/section>\r\n<h2><strong>What is an indicator variable?<\/strong><\/h2>\r\n<p>An indicator variable (also known as a dummy variable) is a binary variable with only two values: [latex]0[\/latex] and [latex]1[\/latex]. When creating an indicator variable, we assign the value of [latex]1[\/latex] for a certain category, and the value of [latex]0[\/latex] is used for all other categories. Dummy variables are commonly used in regression analysis to represent categorical variables that have more than two levels, such as education level or occupation. In this case, multiple dummy variables would be created to represent each level of the variable, and only one dummy variable would take on a value of 1 for each observation.<\/p>\r\n<p>[footnote]https:\/\/en.wikipedia.org\/wiki\/Dummy_variable_(statistics)[\/footnote]Dummy variables are useful because they allow us to include categorical variables in our analysis, which would otherwise be difficult to include due to their non-numeric nature. They can also help us to control for confounding factors and improve the validity of our results.<\/p>\r\n<p>The reference group is the set of observations for which the indicator variable is always zero.<\/p>\r\n<section id=\"What-are-indicator-variables?\">\r\n<section class=\"textbox example\">For example, indicator variables can be used to indicate if a survey respondent has an education level of Bachelor's Degree (the variable is [latex]1[\/latex] for Bachelor's Degree, [latex]0[\/latex] otherwise).<br \/>\r\nThis allows us to work with variables that have many levels, like education level (which could be High School or equivalent, Associate Degree, Bachelor Degree, Master Degree, Doctorate Degree, or Others).<br \/>\r\nIn this case, the reference group are the set of data that has the education level of High School or equivalent, Associate Degree, Master Degree, Doctorate Degree, or Other.<\/section>\r\n<\/section>\r\n<section class=\"textbox tryIt\">[ohm2_question hide_question_numbers=1]3252[\/ohm2_question]<\/section>\r\n<section class=\"textbox tryIt\">[ohm2_question hide_question_numbers=1]3253[\/ohm2_question]<\/section>","rendered":"<section class=\"textbox learningGoals\">\n<ul>\n<li><span data-sheets-value=\"{&quot;1&quot;:2,&quot;2&quot;:&quot;Define what an indicator variable is&quot;}\" data-sheets-userformat=\"{&quot;2&quot;:4609,&quot;3&quot;:{&quot;1&quot;:0},&quot;12&quot;:0,&quot;15&quot;:&quot;Calibri&quot;}\">Know what an indicator variable is<\/span><\/li>\n<li><span data-sheets-value=\"{&quot;1&quot;:2,&quot;2&quot;:&quot;Find and describe an appropriate multiple linear regression model equation with categorical predictors&quot;}\" data-sheets-userformat=\"{&quot;2&quot;:4609,&quot;3&quot;:{&quot;1&quot;:0},&quot;12&quot;:0,&quot;15&quot;:&quot;Calibri&quot;}\">Find and describe an appropriate multiple linear regression model equation with categorical predictors<\/span><\/li>\n<\/ul>\n<\/section>\n<h2><strong>What is an indicator variable?<\/strong><\/h2>\n<p>An indicator variable (also known as a dummy variable) is a binary variable with only two values: [latex]0[\/latex] and [latex]1[\/latex]. When creating an indicator variable, we assign the value of [latex]1[\/latex] for a certain category, and the value of [latex]0[\/latex] is used for all other categories. Dummy variables are commonly used in regression analysis to represent categorical variables that have more than two levels, such as education level or occupation. In this case, multiple dummy variables would be created to represent each level of the variable, and only one dummy variable would take on a value of 1 for each observation.<\/p>\n<p><a class=\"footnote\" title=\"https:\/\/en.wikipedia.org\/wiki\/Dummy_variable_(statistics)\" id=\"return-footnote-1493-1\" href=\"#footnote-1493-1\" aria-label=\"Footnote 1\"><sup class=\"footnote\">[1]<\/sup><\/a>Dummy variables are useful because they allow us to include categorical variables in our analysis, which would otherwise be difficult to include due to their non-numeric nature. They can also help us to control for confounding factors and improve the validity of our results.<\/p>\n<p>The reference group is the set of observations for which the indicator variable is always zero.<\/p>\n<section id=\"What-are-indicator-variables?\">\n<section class=\"textbox example\">For example, indicator variables can be used to indicate if a survey respondent has an education level of Bachelor&#8217;s Degree (the variable is [latex]1[\/latex] for Bachelor&#8217;s Degree, [latex]0[\/latex] otherwise).<br \/>\nThis allows us to work with variables that have many levels, like education level (which could be High School or equivalent, Associate Degree, Bachelor Degree, Master Degree, Doctorate Degree, or Others).<br \/>\nIn this case, the reference group are the set of data that has the education level of High School or equivalent, Associate Degree, Master Degree, Doctorate Degree, or Other.<\/section>\n<\/section>\n<section class=\"textbox tryIt\"><iframe loading=\"lazy\" id=\"ohm3252\" class=\"resizable\" src=\"https:\/\/ohm.one.lumenlearning.com\/multiembedq.php?id=3252&theme=lumen&iframe_resize_id=ohm3252&source=tnh\" width=\"100%\" height=\"150\"><\/iframe><\/section>\n<section class=\"textbox tryIt\"><iframe loading=\"lazy\" id=\"ohm3253\" class=\"resizable\" src=\"https:\/\/ohm.one.lumenlearning.com\/multiembedq.php?id=3253&theme=lumen&iframe_resize_id=ohm3253&source=tnh\" width=\"100%\" height=\"150\"><\/iframe><\/section>\n<hr class=\"before-footnotes clear\" \/><div class=\"footnotes\"><ol><li id=\"footnote-1493-1\">https:\/\/en.wikipedia.org\/wiki\/Dummy_variable_(statistics) <a href=\"#return-footnote-1493-1\" class=\"return-footnote\" aria-label=\"Return to footnote 1\">&crarr;<\/a><\/li><\/ol><\/div>","protected":false},"author":8,"menu_order":20,"template":"","meta":{"_candela_citation":"[]","pb_show_title":"on","pb_short_title":"","pb_subtitle":"","pb_authors":[],"pb_section_license":""},"chapter-type":[],"contributor":[],"license":[],"part":1473,"module-header":"fresh_take","content_attributions":[],"internal_book_links":[],"video_content":null,"cc_video_embed_content":{"cc_scripts":"","media_targets":[]},"try_it_collection":null,"_links":{"self":[{"href":"https:\/\/content.one.lumenlearning.com\/introstatstest\/wp-json\/pressbooks\/v2\/chapters\/1493"}],"collection":[{"href":"https:\/\/content.one.lumenlearning.com\/introstatstest\/wp-json\/pressbooks\/v2\/chapters"}],"about":[{"href":"https:\/\/content.one.lumenlearning.com\/introstatstest\/wp-json\/wp\/v2\/types\/chapter"}],"author":[{"embeddable":true,"href":"https:\/\/content.one.lumenlearning.com\/introstatstest\/wp-json\/wp\/v2\/users\/8"}],"version-history":[{"count":7,"href":"https:\/\/content.one.lumenlearning.com\/introstatstest\/wp-json\/pressbooks\/v2\/chapters\/1493\/revisions"}],"predecessor-version":[{"id":6913,"href":"https:\/\/content.one.lumenlearning.com\/introstatstest\/wp-json\/pressbooks\/v2\/chapters\/1493\/revisions\/6913"}],"part":[{"href":"https:\/\/content.one.lumenlearning.com\/introstatstest\/wp-json\/pressbooks\/v2\/parts\/1473"}],"metadata":[{"href":"https:\/\/content.one.lumenlearning.com\/introstatstest\/wp-json\/pressbooks\/v2\/chapters\/1493\/metadata\/"}],"wp:attachment":[{"href":"https:\/\/content.one.lumenlearning.com\/introstatstest\/wp-json\/wp\/v2\/media?parent=1493"}],"wp:term":[{"taxonomy":"chapter-type","embeddable":true,"href":"https:\/\/content.one.lumenlearning.com\/introstatstest\/wp-json\/pressbooks\/v2\/chapter-type?post=1493"},{"taxonomy":"contributor","embeddable":true,"href":"https:\/\/content.one.lumenlearning.com\/introstatstest\/wp-json\/wp\/v2\/contributor?post=1493"},{"taxonomy":"license","embeddable":true,"href":"https:\/\/content.one.lumenlearning.com\/introstatstest\/wp-json\/wp\/v2\/license?post=1493"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}