{"id":53,"date":"2018-10-31T16:49:14","date_gmt":"2018-10-31T20:49:14","guid":{"rendered":"https:\/\/pressbooks.bccampus.ca\/simplestats\/?post_type=chapter&#038;p=53"},"modified":"2019-09-18T18:55:41","modified_gmt":"2019-09-18T22:55:41","slug":"1-6-creating-variables","status":"publish","type":"chapter","link":"https:\/\/pressbooks.bccampus.ca\/simplestats\/chapter\/1-6-creating-variables\/","title":{"raw":"1.6 Creating Variables","rendered":"1.6 Creating Variables"},"content":{"raw":"&nbsp;\r\n\r\nIf you ever find yourself in need of creating your own variables (perhaps, in creating a questionnaire), this brief final note is for you. As well, you can learn to evaluate whether an existing variable has been operationalized properly.\r\n\r\n&nbsp;\r\n\r\n<strong>To properly create a variable, its categories need to satisfy two requirements: they need to be collectively exhaustive and mutually exclusive.<\/strong> The first condition, <em>collectively exhaustive<\/em>, refers to the requirement that the categories cover all possible ways the variable can vary (or all posisble answers to a questionnaire question) -- none can be excluded. The second condition, <em>mutually exclusive<\/em>, adds the logical necessity that a specific variation (or an answer to a questionnaire question) can exist in one and only one category.\r\n\r\n&nbsp;\r\n\r\nThis is simpler than the definition makes it sound to be. The following example illustrates.\r\n\r\n&nbsp;\r\n<div class=\"textbox textbox--examples\"><header class=\"textbox__header\">\r\n<p class=\"textbox__title\"><em>Example 1.4. Logical Requirements to Operationalizing Variables<\/em><\/p>\r\n\r\n<\/header>\r\n<div class=\"textbox__content\">\r\n\r\nImagine you are filling out a questionnaire and one of the questions is about age, like this:\r\n\r\n<\/div>\r\nQ1. What is your age?\r\n\r\na) 20-29\r\n\r\nb) 30-39\r\n\r\nc) 40-49\r\n\r\nd) 50-59\r\n\r\n&nbsp;\r\n\r\nWhat if you are 18 or 19? Which answer would you pick? How about if the person filling out the questionnaire is 60 or older? As stated, the Q1 question (i.e., the way the variable <em>age<\/em> is operationalized by it) violates the first requirement, that of providing an exhaustive list of all possibilities. All possible variations need to be covered by the variable's categories, otherwise the variable is incomplete.\r\n\r\n&nbsp;\r\n\r\nNow consider another hypothetical way to ask the same questionnaire question:\r\n\r\n&nbsp;\r\n\r\nQ2. What is your age?\r\n\r\na) 18-25\r\n\r\nb) 25-30\r\n\r\nc) 30-35\r\n\r\nd) 35-40\r\n\r\ne) 40-45\r\n\r\nf) 45-50\r\n\r\ng) 50+\r\n\r\n&nbsp;\r\n\r\nAssuming the questionnaire is administered only to adults, Q2 provides a collectively exhaustive list of possible answers; the variable's categories are too collectively exhaustive.\r\n\r\n&nbsp;\r\n\r\nThey are, however, misleading as they are not mutually exclusive. Which answer do you pick if you are 25 -- a) or b)? Which answer do you pick if you are 40 -- d) or e)? Logically, one and the same possible variation cannot fall into two or more categories; it can only fall in<em> one<\/em> of the variable's categories.\r\n\r\n&nbsp;\r\n\r\nThus, one proper way to operationalize<em> age<\/em> is something like this:\r\n\r\n&nbsp;\r\n\r\nQ3. What is your age?\r\n\r\na) 18-25\r\n\r\nb) 26-30\r\n\r\nc) 31-35\r\n\r\nd) 36-40\r\n\r\ne) 41-45\r\n\r\nf) 46-50\r\n\r\ng) Above 50\r\n\r\n&nbsp;\r\n\r\n<\/div>\r\n&nbsp;\r\n\r\nSee if you can spot and fix violations of the two logical operationalization requirements in the exercise below.\r\n\r\n&nbsp;\r\n<div class=\"textbox textbox--exercises\"><header class=\"textbox__header\">\r\n<p class=\"textbox__title\"><em>Do It! 1.6. What is Wrong with These Variables' Operationalizations?<\/em><\/p>\r\n\r\n<\/header>\r\n<div class=\"textbox__content\">\r\n\r\nQ4. What year in college are you?\r\n\r\na) First-year\r\n\r\nb) Second-year\r\n\r\n&nbsp;\r\n\r\nQ5. How many siblings do you have?\r\n\r\na) 0\r\n\r\nb) 1\r\n\r\nc) 1-2\r\n\r\nd) 3-4\r\n\r\ne) 4 or more\r\n\r\n<\/div>\r\nQ6. How do you commute to your institution's campus?\r\n\r\na) Car\r\n\r\nb) Public transit\r\n\r\nc) Bus\r\n\r\nd) Bike\r\n\r\n&nbsp;\r\n\r\n<\/div>\r\n&nbsp;\r\n\r\nNow that we've covered the theoretical preliminaries, go see what working with actual data is like, in Chapter 2.","rendered":"<p>&nbsp;<\/p>\n<p>If you ever find yourself in need of creating your own variables (perhaps, in creating a questionnaire), this brief final note is for you. As well, you can learn to evaluate whether an existing variable has been operationalized properly.<\/p>\n<p>&nbsp;<\/p>\n<p><strong>To properly create a variable, its categories need to satisfy two requirements: they need to be collectively exhaustive and mutually exclusive.<\/strong> The first condition, <em>collectively exhaustive<\/em>, refers to the requirement that the categories cover all possible ways the variable can vary (or all posisble answers to a questionnaire question) &#8212; none can be excluded. The second condition, <em>mutually exclusive<\/em>, adds the logical necessity that a specific variation (or an answer to a questionnaire question) can exist in one and only one category.<\/p>\n<p>&nbsp;<\/p>\n<p>This is simpler than the definition makes it sound to be. The following example illustrates.<\/p>\n<p>&nbsp;<\/p>\n<div class=\"textbox textbox--examples\">\n<header class=\"textbox__header\">\n<p class=\"textbox__title\"><em>Example 1.4. Logical Requirements to Operationalizing Variables<\/em><\/p>\n<\/header>\n<div class=\"textbox__content\">\n<p>Imagine you are filling out a questionnaire and one of the questions is about age, like this:<\/p>\n<\/div>\n<p>Q1. What is your age?<\/p>\n<p>a) 20-29<\/p>\n<p>b) 30-39<\/p>\n<p>c) 40-49<\/p>\n<p>d) 50-59<\/p>\n<p>&nbsp;<\/p>\n<p>What if you are 18 or 19? Which answer would you pick? How about if the person filling out the questionnaire is 60 or older? As stated, the Q1 question (i.e., the way the variable <em>age<\/em> is operationalized by it) violates the first requirement, that of providing an exhaustive list of all possibilities. All possible variations need to be covered by the variable&#8217;s categories, otherwise the variable is incomplete.<\/p>\n<p>&nbsp;<\/p>\n<p>Now consider another hypothetical way to ask the same questionnaire question:<\/p>\n<p>&nbsp;<\/p>\n<p>Q2. What is your age?<\/p>\n<p>a) 18-25<\/p>\n<p>b) 25-30<\/p>\n<p>c) 30-35<\/p>\n<p>d) 35-40<\/p>\n<p>e) 40-45<\/p>\n<p>f) 45-50<\/p>\n<p>g) 50+<\/p>\n<p>&nbsp;<\/p>\n<p>Assuming the questionnaire is administered only to adults, Q2 provides a collectively exhaustive list of possible answers; the variable&#8217;s categories are too collectively exhaustive.<\/p>\n<p>&nbsp;<\/p>\n<p>They are, however, misleading as they are not mutually exclusive. Which answer do you pick if you are 25 &#8212; a) or b)? Which answer do you pick if you are 40 &#8212; d) or e)? Logically, one and the same possible variation cannot fall into two or more categories; it can only fall in<em> one<\/em> of the variable&#8217;s categories.<\/p>\n<p>&nbsp;<\/p>\n<p>Thus, one proper way to operationalize<em> age<\/em> is something like this:<\/p>\n<p>&nbsp;<\/p>\n<p>Q3. What is your age?<\/p>\n<p>a) 18-25<\/p>\n<p>b) 26-30<\/p>\n<p>c) 31-35<\/p>\n<p>d) 36-40<\/p>\n<p>e) 41-45<\/p>\n<p>f) 46-50<\/p>\n<p>g) Above 50<\/p>\n<p>&nbsp;<\/p>\n<\/div>\n<p>&nbsp;<\/p>\n<p>See if you can spot and fix violations of the two logical operationalization requirements in the exercise below.<\/p>\n<p>&nbsp;<\/p>\n<div class=\"textbox textbox--exercises\">\n<header class=\"textbox__header\">\n<p class=\"textbox__title\"><em>Do It! 1.6. What is Wrong with These Variables&#8217; Operationalizations?<\/em><\/p>\n<\/header>\n<div class=\"textbox__content\">\n<p>Q4. What year in college are you?<\/p>\n<p>a) First-year<\/p>\n<p>b) Second-year<\/p>\n<p>&nbsp;<\/p>\n<p>Q5. How many siblings do you have?<\/p>\n<p>a) 0<\/p>\n<p>b) 1<\/p>\n<p>c) 1-2<\/p>\n<p>d) 3-4<\/p>\n<p>e) 4 or more<\/p>\n<\/div>\n<p>Q6. How do you commute to your institution&#8217;s campus?<\/p>\n<p>a) Car<\/p>\n<p>b) Public transit<\/p>\n<p>c) Bus<\/p>\n<p>d) Bike<\/p>\n<p>&nbsp;<\/p>\n<\/div>\n<p>&nbsp;<\/p>\n<p>Now that we&#8217;ve covered the theoretical preliminaries, go see what working with actual data is like, in Chapter 2.<\/p>\n","protected":false},"author":533,"menu_order":9,"template":"","meta":{"pb_show_title":"on","pb_short_title":"","pb_subtitle":"","pb_authors":[],"pb_section_license":""},"chapter-type":[],"contributor":[],"license":[],"class_list":["post-53","chapter","type-chapter","status-publish","hentry"],"part":3,"_links":{"self":[{"href":"https:\/\/pressbooks.bccampus.ca\/simplestats\/wp-json\/pressbooks\/v2\/chapters\/53","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/pressbooks.bccampus.ca\/simplestats\/wp-json\/pressbooks\/v2\/chapters"}],"about":[{"href":"https:\/\/pressbooks.bccampus.ca\/simplestats\/wp-json\/wp\/v2\/types\/chapter"}],"author":[{"embeddable":true,"href":"https:\/\/pressbooks.bccampus.ca\/simplestats\/wp-json\/wp\/v2\/users\/533"}],"version-history":[{"count":15,"href":"https:\/\/pressbooks.bccampus.ca\/simplestats\/wp-json\/pressbooks\/v2\/chapters\/53\/revisions"}],"predecessor-version":[{"id":2023,"href":"https:\/\/pressbooks.bccampus.ca\/simplestats\/wp-json\/pressbooks\/v2\/chapters\/53\/revisions\/2023"}],"part":[{"href":"https:\/\/pressbooks.bccampus.ca\/simplestats\/wp-json\/pressbooks\/v2\/parts\/3"}],"metadata":[{"href":"https:\/\/pressbooks.bccampus.ca\/simplestats\/wp-json\/pressbooks\/v2\/chapters\/53\/metadata\/"}],"wp:attachment":[{"href":"https:\/\/pressbooks.bccampus.ca\/simplestats\/wp-json\/wp\/v2\/media?parent=53"}],"wp:term":[{"taxonomy":"chapter-type","embeddable":true,"href":"https:\/\/pressbooks.bccampus.ca\/simplestats\/wp-json\/pressbooks\/v2\/chapter-type?post=53"},{"taxonomy":"contributor","embeddable":true,"href":"https:\/\/pressbooks.bccampus.ca\/simplestats\/wp-json\/wp\/v2\/contributor?post=53"},{"taxonomy":"license","embeddable":true,"href":"https:\/\/pressbooks.bccampus.ca\/simplestats\/wp-json\/wp\/v2\/license?post=53"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}