{"id":93,"date":"2020-03-10T14:22:13","date_gmt":"2020-03-10T18:22:13","guid":{"rendered":"http:\/\/pressbooks.library.upei.ca\/montelpare\/?post_type=chapter&#038;p=93"},"modified":"2020-08-24T14:16:02","modified_gmt":"2020-08-24T18:16:02","slug":"introduction-to-measurement-ii","status":"publish","type":"chapter","link":"https:\/\/pressbooks.library.upei.ca\/montelpare\/chapter\/introduction-to-measurement-ii\/","title":{"raw":"All About Variables","rendered":"All About Variables"},"content":{"raw":"<h1>Defining a Variable<\/h1>\r\nAs noted previously, variables are central to the application of statistics in research. That is, variables hold the data to which the statistical tests and methods are applied. <strong>Variables<\/strong> are the containers that we use to collect, organize and process data.\r\n\r\n<img src=\"http:\/\/pressbooks.library.upei.ca\/montelpare\/wp-content\/uploads\/sites\/49\/2020\/03\/figure-5-233x300.png\" alt=\"\" class=\"size-medium wp-image-94 aligncenter\" width=\"233\" height=\"300\" \/>\r\n<p style=\"text-align: center\">Representation of the variable \u201cSocial Support\u201d as a container that holds values.<\/p>\r\n&nbsp;\r\n\r\nThe values held by the container (variable) represent the data that was reported for the measure of interest in the sample. Before we move on it is essential to understand both the conceptual definition and the operational definition of each variable in your dataset (or planned study if you are collecting your own data).\r\n\r\nA <strong>conceptual definition<\/strong> refers to the abstract <strong>idea or theoretical meaning<\/strong> of interest (Polit &amp; Beck, 2012). Many concepts are defined in multiple ways so it is important to clearly identify which conceptual definition you are using in your research. For example, the concept of social support can be defined as perceived support, support actually received, emotional support, informational support, and social connections. Though similar, each of these conceptual definitions are distinct. Be careful to ensure that you know exactly the concepts of interest within your research.\r\n\r\nIn contrast, an <strong>operational definition<\/strong> refers to <strong>how<\/strong> you are going to measure the concept of interest (Polit &amp; Beck, 2012). Using our example above, if we decide that we are interested in perceived social support, then we would want to use an instrument that measures perceived social support specifically. We would not want to use an instrument that measures social connections or received support, or something else.\r\n\r\nAnother example that illustrates the difference and links between a conceptual and operational definition is applying them to the concept of body height. The conceptual definition of height is how tall your body is. The operational definition of height is how long your body is from your feet to the top of your head in cm or inches. Measuring the length of a person\u2019s body from head to toe creates a value that represents how tall that person is. That value can then be put into your height container or variable in your dataset for analysis.\r\n\r\n<hr \/>\r\n\r\n<h1>Types of Variables<\/h1>\r\nThe values held by variable containers can be either fixed or they can change. That is, they can vary (that\u2019s right, variables (noun) can be variable (adjective)!). <strong>A random variable<\/strong> is a variable that can take on any value.\r\n\r\nThere are two types of random variables:\r\n\r\n<strong>Discrete random variables <\/strong>- these have finite values, typically based on the whole number line (1, 2, 3\u2026etc.).\r\n\r\nDiscrete random variables can represent counts or categories. Some examples of discrete random variables include classification of sex as male, female, or other; the number of symptoms reported; the number of guests at a resort; the number of airlines using a specific terminal; the number of cavities for a patient, an individual\u2019s socio-economic status (SES); disease state -- classification as a case or non-case; and age category in years.\r\n\r\n<strong>Continuous random variables<\/strong> - these can have an infinite number of values since continuous random variables use the continuous measurement scale based on the REAL number line to record outcomes (0, 1, 1.1, 1.2, etc.).\r\n\r\nExamples of continuous random variables include time, distance, velocity (which is computed from distance \u00f7 time and reported in km\/hr), body weight (reported in kg), oxygen consumption (reported as ml\/kg\u2022min-1), and pharmaceutical prescription (sometimes denoted as mg per 100 grams body weight). Notice in the description of discrete variables we refer to the measurement unit as a whole number or as an integer value (no decimals) while the reference to continuous variables often describe rates or ratios where the measurement can include a decimal value and is often described as a fraction.\r\n\r\n<hr \/>\r\n\r\n<h1>Creating New Categorical Variables<\/h1>\r\nAfter determining whether the measurement is either a discrete or continuous random variable we can group our data to produce new variables that can also take on specific or discrete boundaries. The result is a set of variables, which produce categories of items. The term for a variable, which is used to organize data, is a \"categorical variable\". The categorical variables are used to group results or measurements into sub-classifications so that specific statistical analyses can be performed on each of the sub-classifications within the categorical variable.\r\n\r\nFor example, we could use age measured as a continuous variable to create age categories. In Figure 1.6 you can see how this might be done. Note that you always have less information in the categorical variable than the continuous variable. Keep this in mind. If you ask participants to select their age category that is the maximum amount of information you will have about their age. If instead, you ask them for their exact age you can still create categories later if desired.\r\n<p style=\"text-align: center\"><img src=\"http:\/\/pressbooks.library.upei.ca\/montelpare\/wp-content\/uploads\/sites\/49\/2020\/03\/figure-2_2.png\" alt=\"\" class=\"aligncenter wp-image-106 size-full\" width=\"1004\" height=\"452\" \/><\/p>\r\n<p style=\"text-align: center\">Example of creating a categorical variable from a continuous variable<\/p>\r\n\r\n<div>\r\n\r\n<hr \/>\r\n\r\n<\/div>\r\n<h1>Independent versus Dependent Variables<\/h1>\r\nResearch studies can take on several different design types. Some are purely descriptive, some are correlational and some are comparative. However, many research studies are designed to prove cause and effect relationships between variables.\r\n<p style=\"text-align: center\">Cause (Input)\u00a0 --&gt;\u00a0 Effect (Outcome)<\/p>\r\nInput variables are often referred to as <em>independent <\/em>variables. In experimental research, these can be controlled and are typically categorical or organizing variables. Often the independent variables are called the intervention or predictor variables. Outcome variables are often called <em>dependent<\/em> variables because they depend on the influence of the independent variables. Throughout this text we will explore the application of statistical analyses to variables of different types within research designs that collect measures with different considerations for the role of variables.\r\n<div>\r\n\r\n<hr \/>\r\n\r\n<\/div>\r\n<h1>Here is what we covered in this section<code>\r\n<\/code><\/h1>\r\nHere you were introduced to:\r\n<ul>\r\n \t<li>The different types of research variables that are essential to creating a statistical analysis.<\/li>\r\n \t<li>The concepts of thinking statistically and creating a process before embarking on the research.<\/li>\r\n<\/ul>\r\nIn several examples, we will generate data for our examples using random number generators. The SAS program provides a powerful platform for creating computer simulations that can demonstrate potential outcomes.","rendered":"<h1>Defining a Variable<\/h1>\n<p>As noted previously, variables are central to the application of statistics in research. That is, variables hold the data to which the statistical tests and methods are applied. <strong>Variables<\/strong> are the containers that we use to collect, organize and process data.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/pressbooks.library.upei.ca\/montelpare\/wp-content\/uploads\/sites\/49\/2020\/03\/figure-5-233x300.png\" alt=\"\" class=\"size-medium wp-image-94 aligncenter\" width=\"233\" height=\"300\" srcset=\"https:\/\/pressbooks.library.upei.ca\/montelpare\/wp-content\/uploads\/sites\/49\/2020\/03\/figure-5-233x300.png 233w, https:\/\/pressbooks.library.upei.ca\/montelpare\/wp-content\/uploads\/sites\/49\/2020\/03\/figure-5-65x84.png 65w, https:\/\/pressbooks.library.upei.ca\/montelpare\/wp-content\/uploads\/sites\/49\/2020\/03\/figure-5-225x290.png 225w, https:\/\/pressbooks.library.upei.ca\/montelpare\/wp-content\/uploads\/sites\/49\/2020\/03\/figure-5-350x452.png 350w, https:\/\/pressbooks.library.upei.ca\/montelpare\/wp-content\/uploads\/sites\/49\/2020\/03\/figure-5.png 479w\" sizes=\"auto, (max-width: 233px) 100vw, 233px\" \/><\/p>\n<p style=\"text-align: center\">Representation of the variable \u201cSocial Support\u201d as a container that holds values.<\/p>\n<p>&nbsp;<\/p>\n<p>The values held by the container (variable) represent the data that was reported for the measure of interest in the sample. Before we move on it is essential to understand both the conceptual definition and the operational definition of each variable in your dataset (or planned study if you are collecting your own data).<\/p>\n<p>A <strong>conceptual definition<\/strong> refers to the abstract <strong>idea or theoretical meaning<\/strong> of interest (Polit &amp; Beck, 2012). Many concepts are defined in multiple ways so it is important to clearly identify which conceptual definition you are using in your research. For example, the concept of social support can be defined as perceived support, support actually received, emotional support, informational support, and social connections. Though similar, each of these conceptual definitions are distinct. Be careful to ensure that you know exactly the concepts of interest within your research.<\/p>\n<p>In contrast, an <strong>operational definition<\/strong> refers to <strong>how<\/strong> you are going to measure the concept of interest (Polit &amp; Beck, 2012). Using our example above, if we decide that we are interested in perceived social support, then we would want to use an instrument that measures perceived social support specifically. We would not want to use an instrument that measures social connections or received support, or something else.<\/p>\n<p>Another example that illustrates the difference and links between a conceptual and operational definition is applying them to the concept of body height. The conceptual definition of height is how tall your body is. The operational definition of height is how long your body is from your feet to the top of your head in cm or inches. Measuring the length of a person\u2019s body from head to toe creates a value that represents how tall that person is. That value can then be put into your height container or variable in your dataset for analysis.<\/p>\n<hr \/>\n<h1>Types of Variables<\/h1>\n<p>The values held by variable containers can be either fixed or they can change. That is, they can vary (that\u2019s right, variables (noun) can be variable (adjective)!). <strong>A random variable<\/strong> is a variable that can take on any value.<\/p>\n<p>There are two types of random variables:<\/p>\n<p><strong>Discrete random variables <\/strong>&#8211; these have finite values, typically based on the whole number line (1, 2, 3\u2026etc.).<\/p>\n<p>Discrete random variables can represent counts or categories. Some examples of discrete random variables include classification of sex as male, female, or other; the number of symptoms reported; the number of guests at a resort; the number of airlines using a specific terminal; the number of cavities for a patient, an individual\u2019s socio-economic status (SES); disease state &#8212; classification as a case or non-case; and age category in years.<\/p>\n<p><strong>Continuous random variables<\/strong> &#8211; these can have an infinite number of values since continuous random variables use the continuous measurement scale based on the REAL number line to record outcomes (0, 1, 1.1, 1.2, etc.).<\/p>\n<p>Examples of continuous random variables include time, distance, velocity (which is computed from distance \u00f7 time and reported in km\/hr), body weight (reported in kg), oxygen consumption (reported as ml\/kg\u2022min-1), and pharmaceutical prescription (sometimes denoted as mg per 100 grams body weight). Notice in the description of discrete variables we refer to the measurement unit as a whole number or as an integer value (no decimals) while the reference to continuous variables often describe rates or ratios where the measurement can include a decimal value and is often described as a fraction.<\/p>\n<hr \/>\n<h1>Creating New Categorical Variables<\/h1>\n<p>After determining whether the measurement is either a discrete or continuous random variable we can group our data to produce new variables that can also take on specific or discrete boundaries. The result is a set of variables, which produce categories of items. The term for a variable, which is used to organize data, is a &#8220;categorical variable&#8221;. The categorical variables are used to group results or measurements into sub-classifications so that specific statistical analyses can be performed on each of the sub-classifications within the categorical variable.<\/p>\n<p>For example, we could use age measured as a continuous variable to create age categories. In Figure 1.6 you can see how this might be done. Note that you always have less information in the categorical variable than the continuous variable. Keep this in mind. If you ask participants to select their age category that is the maximum amount of information you will have about their age. If instead, you ask them for their exact age you can still create categories later if desired.<\/p>\n<p style=\"text-align: center\"><img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/pressbooks.library.upei.ca\/montelpare\/wp-content\/uploads\/sites\/49\/2020\/03\/figure-2_2.png\" alt=\"\" class=\"aligncenter wp-image-106 size-full\" width=\"1004\" height=\"452\" srcset=\"https:\/\/pressbooks.library.upei.ca\/montelpare\/wp-content\/uploads\/sites\/49\/2020\/03\/figure-2_2.png 1004w, https:\/\/pressbooks.library.upei.ca\/montelpare\/wp-content\/uploads\/sites\/49\/2020\/03\/figure-2_2-300x135.png 300w, https:\/\/pressbooks.library.upei.ca\/montelpare\/wp-content\/uploads\/sites\/49\/2020\/03\/figure-2_2-768x346.png 768w, https:\/\/pressbooks.library.upei.ca\/montelpare\/wp-content\/uploads\/sites\/49\/2020\/03\/figure-2_2-65x29.png 65w, https:\/\/pressbooks.library.upei.ca\/montelpare\/wp-content\/uploads\/sites\/49\/2020\/03\/figure-2_2-225x101.png 225w, https:\/\/pressbooks.library.upei.ca\/montelpare\/wp-content\/uploads\/sites\/49\/2020\/03\/figure-2_2-350x158.png 350w\" sizes=\"auto, (max-width: 1004px) 100vw, 1004px\" \/><\/p>\n<p style=\"text-align: center\">Example of creating a categorical variable from a continuous variable<\/p>\n<div>\n<hr \/>\n<\/div>\n<h1>Independent versus Dependent Variables<\/h1>\n<p>Research studies can take on several different design types. Some are purely descriptive, some are correlational and some are comparative. However, many research studies are designed to prove cause and effect relationships between variables.<\/p>\n<p style=\"text-align: center\">Cause (Input)\u00a0 &#8211;&gt;\u00a0 Effect (Outcome)<\/p>\n<p>Input variables are often referred to as <em>independent <\/em>variables. In experimental research, these can be controlled and are typically categorical or organizing variables. Often the independent variables are called the intervention or predictor variables. Outcome variables are often called <em>dependent<\/em> variables because they depend on the influence of the independent variables. Throughout this text we will explore the application of statistical analyses to variables of different types within research designs that collect measures with different considerations for the role of variables.<\/p>\n<div>\n<hr \/>\n<\/div>\n<h1>Here is what we covered in this section<code><br \/>\n<\/code><\/h1>\n<p>Here you were introduced to:<\/p>\n<ul>\n<li>The different types of research variables that are essential to creating a statistical analysis.<\/li>\n<li>The concepts of thinking statistically and creating a process before embarking on the research.<\/li>\n<\/ul>\n<p>In several examples, we will generate data for our examples using random number generators. The SAS program provides a powerful platform for creating computer simulations that can demonstrate potential outcomes.<\/p>\n","protected":false},"author":56,"menu_order":3,"template":"","meta":{"pb_show_title":"on","pb_short_title":"","pb_subtitle":"","pb_authors":[],"pb_section_license":""},"chapter-type":[],"contributor":[],"license":[],"class_list":["post-93","chapter","type-chapter","status-publish","hentry"],"part":3,"_links":{"self":[{"href":"https:\/\/pressbooks.library.upei.ca\/montelpare\/wp-json\/pressbooks\/v2\/chapters\/93","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/pressbooks.library.upei.ca\/montelpare\/wp-json\/pressbooks\/v2\/chapters"}],"about":[{"href":"https:\/\/pressbooks.library.upei.ca\/montelpare\/wp-json\/wp\/v2\/types\/chapter"}],"author":[{"embeddable":true,"href":"https:\/\/pressbooks.library.upei.ca\/montelpare\/wp-json\/wp\/v2\/users\/56"}],"version-history":[{"count":11,"href":"https:\/\/pressbooks.library.upei.ca\/montelpare\/wp-json\/pressbooks\/v2\/chapters\/93\/revisions"}],"predecessor-version":[{"id":304,"href":"https:\/\/pressbooks.library.upei.ca\/montelpare\/wp-json\/pressbooks\/v2\/chapters\/93\/revisions\/304"}],"part":[{"href":"https:\/\/pressbooks.library.upei.ca\/montelpare\/wp-json\/pressbooks\/v2\/parts\/3"}],"metadata":[{"href":"https:\/\/pressbooks.library.upei.ca\/montelpare\/wp-json\/pressbooks\/v2\/chapters\/93\/metadata\/"}],"wp:attachment":[{"href":"https:\/\/pressbooks.library.upei.ca\/montelpare\/wp-json\/wp\/v2\/media?parent=93"}],"wp:term":[{"taxonomy":"chapter-type","embeddable":true,"href":"https:\/\/pressbooks.library.upei.ca\/montelpare\/wp-json\/pressbooks\/v2\/chapter-type?post=93"},{"taxonomy":"contributor","embeddable":true,"href":"https:\/\/pressbooks.library.upei.ca\/montelpare\/wp-json\/wp\/v2\/contributor?post=93"},{"taxonomy":"license","embeddable":true,"href":"https:\/\/pressbooks.library.upei.ca\/montelpare\/wp-json\/wp\/v2\/license?post=93"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}