{"id":145,"date":"2016-03-03T11:00:54","date_gmt":"2016-03-03T16:00:54","guid":{"rendered":"http:\/\/www.genderwork.ca\/esd\/?page_id=145"},"modified":"2025-02-06T15:44:07","modified_gmt":"2025-02-06T20:44:07","slug":"statistics-tutorial","status":"publish","type":"page","link":"https:\/\/www.genderwork.ca\/esd\/statistics\/statistics-tutorial\/","title":{"rendered":"statistics tutorial"},"content":{"rendered":"\n<h1 class=\"wp-block-heading\">STATISTICS TUTORIAL<\/h1>\n\n\n\n<p>This page provides a practical guide to using the ESD tables. For more details on the ESD harmonization process and the relevant statistical issues, please see <a href=\"http:\/\/www.genderwork.ca\/esd\/statistics\/statistics-resources\/\" data-type=\"page\" data-id=\"491\">statistics resources<\/a> and <a href=\"http:\/\/www.genderwork.ca\/esd\/statistics\/codebook\/\" data-type=\"page\" data-id=\"150\">the ESD codebook<\/a>.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><strong>STARTING WITH A RESEARCH QUESTION<\/strong><\/h2>\n\n\n\n<p>Statistical tables begin with a research question based on what we would like to know about a particular relationship. In the case of this database, the kinds of questions we asked had to do with employment standards awareness and violations. For example, we might ask:<\/p>\n\n\n\n<p><em>\u201cWhat is the share of men and women employees earning below the minimum wage in Ontario, Chicago, Los Angeles, New York, Australia and the United Kingdom?\u201d<\/em><\/p>\n\n\n\n<p>This tells us that:<\/p>\n\n\n\n<p>1. gender and form of employment are important factors here (male or female; employees)<br>2. minimum wage is the employment standard under consideration<br>3. we are looking at international data<br>4. we are looking at percentages<br>5. we are trying to draw a conclusion based on the relationship between those that are making above and below the minimum wage, in this case who is earning below<\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><strong>BUILDING A TABLE<\/strong><\/h2>\n\n\n\n<p>To move from a research question to a statistical table, we begin with establishing variables. A variable is a property of something which can have different values. For example, a variable to answer our research question above is \u201csex\/gender\u201d, which, in our data, can be broken down into two parts: male and female. Each variable should be exhaustive (in other words, it covers all the ways the category is expressed in the data: male and female*), and should be mutually exclusive (men can be differentiated from women).<\/p>\n\n\n\n<p><em>*Unfortunately, the surveys used in this project did not include options other than the binary &#8220;male&#8221; or &#8220;female&#8221;, so they do not reflect the existence of gender diversity beyond this binary.<\/em><\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><strong>SURVEY USE<\/strong><\/h2>\n\n\n\n<p>Researchers then turn to national and international surveys to answer their question. The ESD uses data from eight core surveys specifically focused on employment standards awareness and violations:<\/p>\n\n\n\n<p>Survey of Employment Standards Compliance in Ontario (SESC)<br>Survey of Employment Standards Violations (SESV)<br>Survey of Work Problems and Actions (SWPA)<br>Australia at Work Survey (AWS)<br>Individual\u2019s Awareness, Knowledge and Exercise of Employment Rights Survey (IAER)<br>Unrepresented Worker Survey (UWS)<br>Employees\u2019 Awareness, Knowledge and Exercise of Employment Rights Survey (EAER)<br>Broken Laws, Unprotected Worker\u2019s Survey (BLUW)<\/p>\n\n\n\n<p>Each survey has particular strengths and weaknesses and is included in different tables depending on the information available in the survey.<\/p>\n\n\n\n<p>For more information on the surveys and the harmonization of variables, refer to the appropriate documents found on the <a href=\"http:\/\/www.genderwork.ca\/esd\/statistics\/esd-harmonization-documents\/\"><strong>ESD harmonization documents<\/strong><\/a> page.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">CHOOSING MULTIDIMENSIONAL TABLES<\/h2>\n\n\n\n<p>Each multidimensional table has a coded name to reflect the main theme of the table. For example, some tables are designed to consider demographic and social location indicators, while others are designed to map income and benefits. A multidimensional table considering demographic and social location variables will have the following coded name in brackets at the end of the short and full table title:<\/p>\n\n\n\n<p class=\"has-text-align-center\"><strong>WG 1-A<\/strong><\/p>\n\n\n\n<p>This code indicates that the table is specific to the wage and wage compensation module <strong>(WG)<\/strong> and that it is number <strong>1<\/strong> in the series of table clusters (<strong>A<\/strong>).&nbsp; Tables in the working time module will have the following format for a similar table: <strong>WT&nbsp;1-A<\/strong>.&nbsp; For complaints and enforcement, the table code would be <strong>CE 1-A<\/strong>. For Leaves, Vacation and Holidays, the table code would be <strong>LV 1-A<\/strong>. And, lastly, the table code pertaining to the job uncertainty module would be <strong>JU 1-A<\/strong>.&nbsp; If users are looking for a particular cluster, these codes are a helpful guide.<\/p>\n\n\n\n<p>The clusters have the following codes:<br><strong>A: Immigration and racialization status: <\/strong>citizenship status, visible minority status, immigration status<br><strong>B: Family and education:<\/strong> marital status, presence of children in the household, education<br><strong>C: Employment characteristics: <\/strong>full-time\/part-time employment, establishment size, union status<br><strong>D: Wages, hours, and tenure: <\/strong>wage\/salary inflation adjusted to Canadian dollars, full-time\/part-time employment, permanent\/temporary employment<br><strong>E: Industry and occupation: <\/strong>industry, occupation<\/p>\n\n\n\n<p>Survey, year, geography, sex\/gender, and age appear in all tables.<\/p>\n\n\n\n<p>There is also a set of cross-cutting tables providing general information about employment context. These tables are designated&nbsp;<strong>00<\/strong>. Note that the <strong>00<\/strong> tables are also named using letters (e.g., 00-A, 00-B&#8230;) but these letters <strong>do not correspond to the clusters above<\/strong>, and are assigned arbitrarily. The variables included in these tables are listed in the title of each table.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><strong>CHOOSING VARIABLES<\/strong><\/h2>\n\n\n\n<p>Each module is organized so that multidimensional tables cover all of the major themes and indicators of the ESD.&nbsp; These themes include:<\/p>\n\n\n\n<p><strong>Geography and time<\/strong> (e.g. year, country, cross-sectional weight)<\/p>\n\n\n\n<p><strong>Demographics and social location<\/strong> (e.g. sex, age, immigrant status)<br><strong>Job characteristics<\/strong> (e.g. industry, occupation)<br><strong>Wage and wage compensation <\/strong>(e.g. rate of pay, earn minimum wage, deductions)<br><strong>Hours <\/strong>(e.g. hours worked per week, breaks, overtime)<br><strong>Complaints and enforcement<\/strong> (e.g. employment standards complaint, sought advice)<br><strong>Leaves, vacation and holidays <\/strong>(e.g. public holiday leave, vacation leave)<br><strong>Termination and severance <\/strong>(e.g. unfairly dismissed, job security)<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">GETTING STARTED<\/h2>\n\n\n\n<p>Upon opening the statistics web application, you will be presented with a drop-down menu for you to select a module: Employment Context; <a href=\"http:\/\/www.genderwork.ca\/esd\/modules\/complaints-and-enforcement\/\" data-type=\"page\" data-id=\"46\">Complaints &amp; Enforcement<\/a>; <a href=\"http:\/\/www.genderwork.ca\/esd\/modules\/job-uncertainty\/\" data-type=\"page\" data-id=\"50\">Job Uncertainty<\/a>; <a href=\"http:\/\/www.genderwork.ca\/esd\/modules\/leaves-vacation-and-holidays\/\" data-type=\"page\" data-id=\"364\">Leaves, Vacations and Holidays<\/a>; <a href=\"http:\/\/www.genderwork.ca\/esd\/modules\/wage-and-wage-compensation\/\" data-type=\"page\" data-id=\"42\">Wages<\/a>; and <a href=\"http:\/\/www.genderwork.ca\/esd\/modules\/hours\/\" data-type=\"page\" data-id=\"44\">Working Time<\/a>. Except for Employment Context, which provides broad, cross-cutting comparisons across basic survey variables, these correspond to the <a href=\"http:\/\/www.genderwork.ca\/esd\/modules\/\" data-type=\"page\" data-id=\"39\">ESD modules<\/a> described on this page.<\/p>\n\n\n\n<p>After selecting a module, a drop-down menu will appear for you to select a table from that module. Each table is labelled with a code, such as CE 1-A, as described above in &#8220;Choosing Multidimensional Tables&#8221;. The code is followed by the title of that table, which informs you what issue the table focuses on, and which variables it includes.<\/p>\n\n\n\n<p>Upon selecting a table, you can type or use the new dropdown that appears to select categorical variables to display. Once you have selected at least one variable, a table will appear to the right providing weighted counts for the variable(s) you have selected. Congratulations \u2014 you&#8217;ve created your first table!<\/p>\n\n\n\n<p>Now that you have created a table, there are various ways to customize it for your research question.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">SORTING ROWS<\/h3>\n\n\n\n<p>You can sort the table by one of the columns by clicking on the column header you want to sort by. After clicking once, it will be sorted in ascending order (arrow pointing upwards):<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><a href=\"http:\/\/www.genderwork.ca\/esd\/wp-content\/uploads\/2023\/12\/image-4.png\"><img loading=\"lazy\" decoding=\"async\" width=\"81\" height=\"81\" src=\"http:\/\/www.genderwork.ca\/esd\/wp-content\/uploads\/2023\/12\/image-4.png\" alt=\"\" class=\"wp-image-566\" srcset=\"https:\/\/www.genderwork.ca\/esd\/wp-content\/uploads\/2023\/12\/image-4.png 81w, https:\/\/www.genderwork.ca\/esd\/wp-content\/uploads\/2023\/12\/image-4-75x75.png 75w\" sizes=\"(max-width: 81px) 100vw, 81px\" \/><\/a><\/figure>\n\n\n\n<p>You can sort in descending order (arrow pointing downards) by clicking again:<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><a href=\"http:\/\/www.genderwork.ca\/esd\/wp-content\/uploads\/2023\/12\/image-5.png\"><img loading=\"lazy\" decoding=\"async\" width=\"80\" height=\"83\" src=\"http:\/\/www.genderwork.ca\/esd\/wp-content\/uploads\/2023\/12\/image-5.png\" alt=\"\" class=\"wp-image-567\"\/><\/a><\/figure>\n\n\n\n<p>Categorical variables are sorted in alphabetical order, while numeric variables are sorted by value.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">REORDERING COLUMNS<\/h3>\n\n\n\n<p>Columns can be reordered by clicking and dragging them.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">APPLYING AN ANALYSIS<\/h3>\n\n\n\n<p>In the ESD statistics application, an &#8220;analysis&#8221; is a particular way of looking at a given table.<\/p>\n\n\n\n<p>The <strong>basic analysis<\/strong> has a column for each categorical variable chosen, a &#8220;Count&#8221; column that provides a weighted count for the permutation of variable categories in each row, and a &#8220;%&#8221; column that provides the percentage based on these weighted counts. This layout is sometimes referred to as <a href=\"https:\/\/vita.had.co.nz\/papers\/tidy-data.html\" data-type=\"URL\" data-id=\"https:\/\/vita.had.co.nz\/papers\/tidy-data.html\">tidy data<\/a> and is useful for manipulation, modelling, and visualization (see &#8220;Downloading the table&#8221; below).<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><a href=\"http:\/\/www.genderwork.ca\/esd\/wp-content\/uploads\/2023\/12\/image.png\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"174\" src=\"http:\/\/www.genderwork.ca\/esd\/wp-content\/uploads\/2023\/12\/image-1024x174.png\" alt=\"\" class=\"wp-image-562\" srcset=\"https:\/\/www.genderwork.ca\/esd\/wp-content\/uploads\/2023\/12\/image-1024x174.png 1024w, https:\/\/www.genderwork.ca\/esd\/wp-content\/uploads\/2023\/12\/image-300x51.png 300w, https:\/\/www.genderwork.ca\/esd\/wp-content\/uploads\/2023\/12\/image-768x131.png 768w, https:\/\/www.genderwork.ca\/esd\/wp-content\/uploads\/2023\/12\/image.png 1276w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/a><figcaption class=\"wp-element-caption\"><em>An example of the &#8220;basic&#8221; analysis format. The table pictured is CE 4-A: Discrimination Complaint. The table shows that the bulk of respondents included in the table identify as visual minorities, with slightly more women than men in each group.<\/em><\/figcaption><\/figure>\n\n\n\n<p>The second type of analysis that can be chosen is <strong>grouping by a categorical variable<\/strong>. This is also known as &#8220;cross-tabulation&#8221; or &#8220;cross-tabs&#8221;. After selecting this analysis type, a drop-down appears for you to select another categorical variable in the table for you to group by. After selecting a variable, that variable&#8217;s categories are shifted from the <em>rows<\/em> to the <em>columns<\/em>, as illustrated in the screenshot below, effectively creating a sub-group within the table. By default, the percentages shown in this view are column percentages (meaning that the values in each column sum to 100%). If you prefer row percentages (where the values in each row sum to 100%), you can adjust this using the <strong>Percentage type<\/strong> option that appears after you select a variable to group by.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><a href=\"https:\/\/www.genderwork.ca\/esd\/wp-content\/uploads\/2025\/02\/image-24.png\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"678\" src=\"https:\/\/www.genderwork.ca\/esd\/wp-content\/uploads\/2025\/02\/image-24-1024x678.png\" alt=\"\" class=\"wp-image-779\" srcset=\"https:\/\/www.genderwork.ca\/esd\/wp-content\/uploads\/2025\/02\/image-24-1024x678.png 1024w, https:\/\/www.genderwork.ca\/esd\/wp-content\/uploads\/2025\/02\/image-24-300x199.png 300w, https:\/\/www.genderwork.ca\/esd\/wp-content\/uploads\/2025\/02\/image-24-768x509.png 768w, https:\/\/www.genderwork.ca\/esd\/wp-content\/uploads\/2025\/02\/image-24.png 1375w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/a><figcaption class=\"wp-element-caption\"><em>An example of the &#8220;grouping by a categorical variable&#8221;\/&#8221;cross-tabs&#8221; analysis format. The sidebar is included so you can see which options have been selected. The table pictured is WT 3-C: Working Overtime by Employment Characteristics. Missing categories have been removed for readability. The table shows that fewer respondents who have a recognized union at their place of work report working overtime than those without a recognized union at their place of work.<\/em><\/figcaption><\/figure>\n\n\n\n<p>The final type of analysis that can be chosen is <strong>calculating the mean of a numeric variable<\/strong>. This option only appears if the table contains a numeric variable, such as those representing wages or hours worked; if you don&#8217;t see the option, it means there is no numeric variable available for the table you have chosen. After selecting this analysis type and selecting a numeric variable from the drop-down menu that appears, a new column will be added to the table that represents the <em>mean value<\/em> of the numeric variable for the permutation of variable categories in each row.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><a href=\"https:\/\/www.genderwork.ca\/esd\/wp-content\/uploads\/2025\/02\/image-25.png\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"598\" src=\"https:\/\/www.genderwork.ca\/esd\/wp-content\/uploads\/2025\/02\/image-25-1024x598.png\" alt=\"\" class=\"wp-image-781\" srcset=\"https:\/\/www.genderwork.ca\/esd\/wp-content\/uploads\/2025\/02\/image-25-1024x598.png 1024w, https:\/\/www.genderwork.ca\/esd\/wp-content\/uploads\/2025\/02\/image-25-300x175.png 300w, https:\/\/www.genderwork.ca\/esd\/wp-content\/uploads\/2025\/02\/image-25-768x448.png 768w, https:\/\/www.genderwork.ca\/esd\/wp-content\/uploads\/2025\/02\/image-25.png 1374w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/a><figcaption class=\"wp-element-caption\"><em>An example of the &#8220;calculating the mean of a numeric variable&#8221; analysis format. The sidebar is included so you can see which options have been selected. The table pictured is WG 1-E: Hourly Rate in Main Job by Industry and Occupation. The table is sorted by Hourly Rate of Pay in Main Job (descending). The table shows that respondents working in sciences, business, and management have the highest hourly rates of pay, while those in primary industry and the trades have the lowest hourly rates of pay.<\/em><\/figcaption><\/figure>\n\n\n\n<h3 class=\"wp-block-heading\">SHOWING AND HIDING VARIABLE CATEGORIES<\/h3>\n\n\n\n<p>In some cases, you may only be interested in particular categories for a given variable. One common example is removing categories associated with missing data. There are two types of missing data in the ESD. When data is simply not present, such as if a question was not asked to a particular respondent, it is coded as &#8220;missing&#8221;. When a respondent declined to answer a question, it is coded as &#8220;don&#8217;t know\/refused&#8221;. If you want to exclude these categories from the table and calculate percentages based exclusively on non-missing data, you can click the <strong>Hide<\/strong> button in the <strong>Edit variable categories<\/strong> tab. This will hide all missing categories for all variables in your table. To show them again, you can click <strong>Show<\/strong>, which will show all missing categories for all variables in your table.<\/p>\n\n\n\n<p>The ESD also allows more fine-grained selection of categories for individual variables. This interface is also found in the <strong>Edit variable categories<\/strong> tab, and it allows you to select a variable from your table and show\/hide its categories individually using checkboxes. This is useful if, for example, you are only interested in data from one particular group (e.g., women) and want to hide other groups (e.g., men), or if you want to hide missing data only from particular variables.<\/p>\n\n\n\n<p>Keep in mind that percentages are calculated based only on the categories that are included in the table. If you use percentages from a table where you have edited the variable categories, make sure you report this along with those percentages.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">DOWNLOADING THE TABLE<\/h3>\n\n\n\n<p>If you are more comfortable analyzing data in an external application (such as R, Excel, or SPSS), you can download the currently-displayed table at any time as a .csv (comma-separated values) file, a .xlsx (Microsoft Excel spreadsheet), or a .pdf (portable document format), by clicking on the <strong>&#8220;<\/strong>Export the currently displayed table<strong>&#8220;<\/strong> button.<\/p>\n\n\n\n<p>Keep in mind that the table will be downloaded exactly as it appears on the ESD web application. That means that if you have applied a particular analysis, reordered columns, sorted the rows, or shown\/hidden particular variable categories, that will also be reflected in the downloaded table. For that reason, when you download a table, <strong>you are strongly advised to make a note of any changes that you have made to the table<\/strong>. This will prevent you from forgetting important modifications you made that could affect your interpretation (for example, if your table is excluding missing values, or if you hid a particular level because it was not relevant), and will ensure you are able to reproduce and describe your analysis process, such as in a research paper or presentation. <strong>You are also advised to make a note of the date you downloaded the table<\/strong>.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><strong>USING STATISTICAL DATA<\/strong><\/h2>\n\n\n\n<p>It is essential that you are careful in how you use statistical data. First, you should think about what story you are trying to tell with the data. Numeric data does not stand alone. It needs to be interpreted through a conceptual framework which each researcher provides. <em>What questions are you trying to answer with this data? What is the best way to apply the data to your specific needs?<\/em><\/p>\n\n\n\n<p>Second, do not assume that because statistical data is numeric that it is <em>truth<\/em>. Be critical of how the data was obtained, and what types of questions were asked. You can click on the file and dimension summary icons in the table to find out more about how the table and dimensions were developed, what surveys were used to create the table and what are the suppression limits associated with the data in the table and become aware of the caution flags associated with that table and\/or dimensions.<\/p>\n\n\n\n<p>You should also ensure that your method of calculation is correct. If you are trying to calculate a percentage based on the table, make sure that you are using the correct total. As noted above, percentages are calculated based only on the categories that are included in the table, so you should make note of which categories are included when reporting a percentage. Similarly, if you are working with downloaded data, you should make note of any changes you made prior to downloading it.<\/p>\n\n\n\n<p><em>*Note: You must apply for access to the statistical tables of the Employment Standards Database. See the <a rel=\"noreferrer noopener\" href=\"http:\/\/www.genderwork.ca\/esd\/statistics\/apply-for-statistics-access\/\" data-type=\"page\" data-id=\"148\" target=\"_blank\">apply for statistics access<\/a> page for eligibility requirements and other information. <\/em><\/p>\n","protected":false},"excerpt":{"rendered":"<p>STATISTICS TUTORIAL This page provides a practical guide to using the ESD tables. For more details on the ESD harmonization process and the relevant statistical issues, please see statistics resources and the ESD codebook. STARTING WITH A RESEARCH QUESTION Statistical tables begin with a research question based on what we would like to know about a particular relationship. In the<\/p>\n","protected":false},"author":1,"featured_media":0,"parent":89,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"template-fullwidth.php","meta":{"_exactmetrics_skip_tracking":false,"_exactmetrics_sitenote_active":false,"_exactmetrics_sitenote_note":"","_exactmetrics_sitenote_category":0,"footnotes":""},"_links":{"self":[{"href":"https:\/\/www.genderwork.ca\/esd\/wp-json\/wp\/v2\/pages\/145"}],"collection":[{"href":"https:\/\/www.genderwork.ca\/esd\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/www.genderwork.ca\/esd\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/www.genderwork.ca\/esd\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.genderwork.ca\/esd\/wp-json\/wp\/v2\/comments?post=145"}],"version-history":[{"count":20,"href":"https:\/\/www.genderwork.ca\/esd\/wp-json\/wp\/v2\/pages\/145\/revisions"}],"predecessor-version":[{"id":782,"href":"https:\/\/www.genderwork.ca\/esd\/wp-json\/wp\/v2\/pages\/145\/revisions\/782"}],"up":[{"embeddable":true,"href":"https:\/\/www.genderwork.ca\/esd\/wp-json\/wp\/v2\/pages\/89"}],"wp:attachment":[{"href":"https:\/\/www.genderwork.ca\/esd\/wp-json\/wp\/v2\/media?parent=145"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}