  {"id":1290,"date":"2022-03-28T16:40:00","date_gmt":"2022-03-28T16:40:00","guid":{"rendered":"https:\/\/www.lancaster.ac.uk\/stor-i-student-sites\/thomas-newman\/?p=1290"},"modified":"2022-04-18T15:16:59","modified_gmt":"2022-04-18T15:16:59","slug":"ae-patients-attendances-exploratory-data-analysis","status":"publish","type":"post","link":"https:\/\/www.lancaster.ac.uk\/stor-i-student-sites\/thomas-newman\/2022\/03\/28\/ae-patients-attendances-exploratory-data-analysis\/","title":{"rendered":"(Part 1) Daily attendances in accident and emergency departments &#8211; Exploratory data analysis"},"content":{"rendered":"\t\t<div data-elementor-type=\"wp-post\" data-elementor-id=\"1290\" class=\"elementor elementor-1290\">\n\t\t\t\t\t\t<section class=\"elementor-section elementor-top-section elementor-element elementor-element-4c28f99 elementor-section-boxed elementor-section-height-default elementor-section-height-default\" data-id=\"4c28f99\" data-element_type=\"section\" data-e-type=\"section\">\n\t\t\t\t\t\t<div class=\"elementor-container elementor-column-gap-default\">\n\t\t\t\t\t<div class=\"elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-d9ede88\" data-id=\"d9ede88\" data-element_type=\"column\" data-e-type=\"column\">\n\t\t\t<div class=\"elementor-widget-wrap elementor-element-populated\">\n\t\t\t\t\t\t<div class=\"elementor-element elementor-element-7102123 elementor-widget elementor-widget-text-editor\" data-id=\"7102123\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t\t<p>This two part blog will focus on the <span style=\"font-size: 13px\">attendances at an\u00a0<\/span><span style=\"font-family: Poppins;font-size: 13px;font-style: normal;font-weight: 400\">accident<\/span><span style=\"font-family: Poppins;font-size: 13px;font-style: normal;font-weight: 400\">\u00a0<\/span><span style=\"font-family: Poppins;font-size: 13px;font-style: normal;font-weight: 400\">and emergency department\u00a0<\/span><span style=\"font-family: Poppins;font-size: 13px;font-style: normal;font-weight: 400\">(A&amp;E)<\/span><span style=\"font-size: 13px\">\u00a0in a major hospital in the United Kingdom between the beginning of 2016 and the end of 2019. This first blog looks into analysing the relationships between the daily number of admissions\/attendances at the hospital\u2019s A&amp;E and patients\u2019 age\/referral source\/arrival date\/time. In the second blog (<\/span><a style=\"font-size: 13px\" href=\"https:\/\/www.lancaster.ac.uk\/stor-i-student-sites\/thomas-newman\/2022\/03\/15\/daily-attendances-in-accident-and-emergency-departments-forecasting-attendances\/\" target=\"_blank\" rel=\"noopener\">Daily attendances in accident and emergency departments &#8211; Forecasting attendances<\/a><span style=\"font-size: 13px\">) we use the information gathered from the exploratory data analysis (EDA) conducted in this first blog to predict the daily number of attendances at the hospital\u2019s A&amp;E.<\/span><\/p>\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/section>\n\t\t\t\t<section class=\"elementor-section elementor-top-section elementor-element elementor-element-f4d2036 elementor-section-boxed elementor-section-height-default elementor-section-height-default\" data-id=\"f4d2036\" data-element_type=\"section\" data-e-type=\"section\">\n\t\t\t\t\t\t<div class=\"elementor-container elementor-column-gap-default\">\n\t\t\t\t\t<div class=\"elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-cf62844\" data-id=\"cf62844\" data-element_type=\"column\" data-e-type=\"column\">\n\t\t\t<div class=\"elementor-widget-wrap elementor-element-populated\">\n\t\t\t\t\t\t<div class=\"elementor-element elementor-element-416cc7c elementor-widget elementor-widget-heading\" data-id=\"416cc7c\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"heading.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t<h2 class=\"elementor-heading-title elementor-size-default\">1. Background <\/h2>\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/section>\n\t\t\t\t<section class=\"elementor-section elementor-top-section elementor-element elementor-element-078d1a3 elementor-section-boxed elementor-section-height-default elementor-section-height-default\" data-id=\"078d1a3\" data-element_type=\"section\" data-e-type=\"section\">\n\t\t\t\t\t\t<div class=\"elementor-container elementor-column-gap-default\">\n\t\t\t\t\t<div class=\"elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-10c0d2a\" data-id=\"10c0d2a\" data-element_type=\"column\" data-e-type=\"column\">\n\t\t\t<div class=\"elementor-widget-wrap elementor-element-populated\">\n\t\t\t\t\t\t<div class=\"elementor-element elementor-element-72a8692 elementor-widget elementor-widget-text-editor\" data-id=\"72a8692\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t\t<p>The last few decades prior to COVID-19 pandemic have seen an increase in the number of people admitted to A&amp;E departments. According to <a href=\"https:\/\/www.health.org.uk\/publications\/emergency-hospital-admissions-in-england-which-may-be-avoidable-and-how\" target=\"_blank\" rel=\"noopener\">Stevenson et al. (2018)<\/a>, part of the increase in emergency admissions is due to the rise in the number of sick people. The current medicine is able to maintain people alive for longer than ever before, although, this does not always mean that these patients are cured. Consequently, these patients are very likely to require treatment again and for more complex needs. Additionally, there exist many other factors which influence the number of admissions. When speaking with people who worked in emergency departments, I learnt from them that non-medical factors such as weather, celebration days and big events can influence admission levels. Nevertheless, these external factor are ignored here and will be the core of future work.<\/p>\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/section>\n\t\t\t\t<section class=\"elementor-section elementor-top-section elementor-element elementor-element-0a57f4e elementor-section-boxed elementor-section-height-default elementor-section-height-default\" data-id=\"0a57f4e\" data-element_type=\"section\" data-e-type=\"section\">\n\t\t\t\t\t\t<div class=\"elementor-container elementor-column-gap-default\">\n\t\t\t\t\t<div class=\"elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-f32dc9f\" data-id=\"f32dc9f\" data-element_type=\"column\" data-e-type=\"column\">\n\t\t\t<div class=\"elementor-widget-wrap elementor-element-populated\">\n\t\t\t\t\t\t<div class=\"elementor-element elementor-element-4ec48c3 elementor-widget elementor-widget-heading\" data-id=\"4ec48c3\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"heading.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t<h2 class=\"elementor-heading-title elementor-size-default\">2. Exploratory data analysis of the number of admissions and \nattendances at A&amp;E<\/h2>\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/section>\n\t\t\t\t<section class=\"elementor-section elementor-top-section elementor-element elementor-element-2ec4e5f elementor-section-boxed elementor-section-height-default elementor-section-height-default\" data-id=\"2ec4e5f\" data-element_type=\"section\" data-e-type=\"section\">\n\t\t\t\t\t\t<div class=\"elementor-container elementor-column-gap-default\">\n\t\t\t\t\t<div class=\"elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-a461208\" data-id=\"a461208\" data-element_type=\"column\" data-e-type=\"column\">\n\t\t\t<div class=\"elementor-widget-wrap elementor-element-populated\">\n\t\t\t\t\t\t<div class=\"elementor-element elementor-element-a4c6f45 elementor-widget elementor-widget-text-editor\" data-id=\"a4c6f45\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t\t<p>As part of this project, we will studying the daily number of admissions and attendances in emergency departments, especially knowing what percentage of people attending the emergency departments are then admitted. Furthermore, we will analyse the relationship these have with the patients\u2019 arrival date, arrival time, age and referral source. The data used concerns the daily number of attendances and admissions at A&amp;E from beginning of 2016 to end of 2019. Throughout the two blogs, accident and emergency department (A&amp;E) and emergency department (ED) will be used interchangeably.\u00a0<\/p>\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/section>\n\t\t\t\t<section class=\"elementor-section elementor-top-section elementor-element elementor-element-131932f elementor-section-boxed elementor-section-height-default elementor-section-height-default\" data-id=\"131932f\" data-element_type=\"section\" data-e-type=\"section\">\n\t\t\t\t\t\t<div class=\"elementor-container elementor-column-gap-default\">\n\t\t\t\t\t<div class=\"elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-5e4ceb8\" data-id=\"5e4ceb8\" data-element_type=\"column\" data-e-type=\"column\">\n\t\t\t<div class=\"elementor-widget-wrap elementor-element-populated\">\n\t\t\t\t\t\t<div class=\"elementor-element elementor-element-55e5047 elementor-widget elementor-widget-image\" data-id=\"55e5047\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"image.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t\t\t\t\t<figure class=\"wp-caption\">\n\t\t\t\t\t\t\t\t\t\t<img fetchpriority=\"high\" decoding=\"async\" width=\"768\" height=\"388\" src=\"https:\/\/www.lancaster.ac.uk\/stor-i-student-sites\/thomas-newman\/wp-content\/uploads\/sites\/37\/2022\/03\/ts-data-768x388.png\" class=\"attachment-medium_large size-medium_large wp-image-1318\" alt=\"Ts data\" srcset=\"https:\/\/www.lancaster.ac.uk\/stor-i-student-sites\/thomas-newman\/wp-content\/uploads\/sites\/37\/2022\/03\/ts-data-768x388.png 768w, https:\/\/www.lancaster.ac.uk\/stor-i-student-sites\/thomas-newman\/wp-content\/uploads\/sites\/37\/2022\/03\/ts-data-300x152.png 300w, https:\/\/www.lancaster.ac.uk\/stor-i-student-sites\/thomas-newman\/wp-content\/uploads\/sites\/37\/2022\/03\/ts-data-1024x518.png 1024w, https:\/\/www.lancaster.ac.uk\/stor-i-student-sites\/thomas-newman\/wp-content\/uploads\/sites\/37\/2022\/03\/ts-data.png 1488w\" sizes=\"(max-width: 768px) 100vw, 768px\" \/>\t\t\t\t\t\t\t\t\t\t\t<figcaption class=\"widget-image-caption wp-caption-text\">Figure 1: Time series of the daily number of attendances (top) and daily number of  admissions (bottom) at the A&amp;E from beginning of 2016 to end of 2019.<\/figcaption>\n\t\t\t\t\t\t\t\t\t\t<\/figure>\n\t\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/section>\n\t\t\t\t<section class=\"elementor-section elementor-top-section elementor-element elementor-element-ad410c9 elementor-section-boxed elementor-section-height-default elementor-section-height-default\" data-id=\"ad410c9\" data-element_type=\"section\" data-e-type=\"section\">\n\t\t\t\t\t\t<div class=\"elementor-container elementor-column-gap-default\">\n\t\t\t\t\t<div class=\"elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-eca3825\" data-id=\"eca3825\" data-element_type=\"column\" data-e-type=\"column\">\n\t\t\t<div class=\"elementor-widget-wrap elementor-element-populated\">\n\t\t\t\t\t\t<div class=\"elementor-element elementor-element-6bba255 elementor-widget elementor-widget-heading\" data-id=\"6bba255\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"heading.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t<h3 class=\"elementor-heading-title elementor-size-default\">2.1 Relationship between the number of admissions\/attendances and \npatients\u2019 arrival date\/time<\/h3>\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/section>\n\t\t\t\t<section class=\"elementor-section elementor-top-section elementor-element elementor-element-6e7426c elementor-section-boxed elementor-section-height-default elementor-section-height-default\" data-id=\"6e7426c\" data-element_type=\"section\" data-e-type=\"section\">\n\t\t\t\t\t\t<div class=\"elementor-container elementor-column-gap-default\">\n\t\t\t\t\t<div class=\"elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-c623df1\" data-id=\"c623df1\" data-element_type=\"column\" data-e-type=\"column\">\n\t\t\t<div class=\"elementor-widget-wrap elementor-element-populated\">\n\t\t\t\t\t\t<div class=\"elementor-element elementor-element-8f6a6d0 elementor-widget elementor-widget-text-editor\" data-id=\"8f6a6d0\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t\t<p>We begin by analysing the relationship attendances and admissions have with days of the week and hours of the day. The sample statistics produced (Tab.1) revealed that Saturday has on average the highest percentage of people being admitted after attending the A&amp;E. Then, boxplots were created to visually represent these relationships (Fig.4). The daily number of attendances and admissions followed a very similar pattern across the days of the week. Days with a higher number of attendances also have a higher number of admissions. Additionally, the percentage of people admitted was relatively constant across the week. The lowest percentage of admission being 29.34% (Thursday) and the highest being 32.13% (Saturday). However, only a very week negative correlation (Pearson coefficient: -0.23) exists between the percentage of people admitted and the number of people attending the A&amp;E each day.<\/p>\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/section>\n\t\t\t\t<section class=\"elementor-section elementor-top-section elementor-element elementor-element-48ee110 elementor-section-boxed elementor-section-height-default elementor-section-height-default\" data-id=\"48ee110\" data-element_type=\"section\" data-e-type=\"section\">\n\t\t\t\t\t\t<div class=\"elementor-container elementor-column-gap-default\">\n\t\t\t\t\t<div class=\"elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-1623c83\" data-id=\"1623c83\" data-element_type=\"column\" data-e-type=\"column\">\n\t\t\t<div class=\"elementor-widget-wrap elementor-element-populated\">\n\t\t\t\t\t\t<div class=\"elementor-element elementor-element-448c0c1 elementor-widget elementor-widget-image\" data-id=\"448c0c1\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"image.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t\t\t\t\t<figure class=\"wp-caption\">\n\t\t\t\t\t\t\t\t\t\t<img decoding=\"async\" width=\"768\" height=\"382\" src=\"https:\/\/www.lancaster.ac.uk\/stor-i-student-sites\/thomas-newman\/wp-content\/uploads\/sites\/37\/2022\/03\/tab1-768x382.png\" class=\"attachment-medium_large size-medium_large wp-image-1328\" alt=\"Tab1\" srcset=\"https:\/\/www.lancaster.ac.uk\/stor-i-student-sites\/thomas-newman\/wp-content\/uploads\/sites\/37\/2022\/03\/tab1-768x382.png 768w, https:\/\/www.lancaster.ac.uk\/stor-i-student-sites\/thomas-newman\/wp-content\/uploads\/sites\/37\/2022\/03\/tab1-300x149.png 300w, https:\/\/www.lancaster.ac.uk\/stor-i-student-sites\/thomas-newman\/wp-content\/uploads\/sites\/37\/2022\/03\/tab1-1024x509.png 1024w, https:\/\/www.lancaster.ac.uk\/stor-i-student-sites\/thomas-newman\/wp-content\/uploads\/sites\/37\/2022\/03\/tab1.png 1375w\" sizes=\"(max-width: 768px) 100vw, 768px\" \/>\t\t\t\t\t\t\t\t\t\t\t<figcaption class=\"widget-image-caption wp-caption-text\">Table 1: Sample statistic for the average percentage of patients being admitted after attending the A&amp;E by days of the week from the beginning of 2016 to the end of 2019.<\/figcaption>\n\t\t\t\t\t\t\t\t\t\t<\/figure>\n\t\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/section>\n\t\t\t\t<section class=\"elementor-section elementor-top-section elementor-element elementor-element-afe7d58 elementor-section-boxed elementor-section-height-default elementor-section-height-default\" data-id=\"afe7d58\" data-element_type=\"section\" data-e-type=\"section\">\n\t\t\t\t\t\t<div class=\"elementor-container elementor-column-gap-default\">\n\t\t\t\t\t<div class=\"elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-dd02cb4\" data-id=\"dd02cb4\" data-element_type=\"column\" data-e-type=\"column\">\n\t\t\t<div class=\"elementor-widget-wrap elementor-element-populated\">\n\t\t\t\t\t\t<div class=\"elementor-element elementor-element-6e92582 elementor-widget elementor-widget-image\" data-id=\"6e92582\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"image.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t\t\t\t\t<figure class=\"wp-caption\">\n\t\t\t\t\t\t\t\t\t\t<img decoding=\"async\" width=\"768\" height=\"395\" src=\"https:\/\/www.lancaster.ac.uk\/stor-i-student-sites\/thomas-newman\/wp-content\/uploads\/sites\/37\/2022\/03\/fig2-768x395.png\" class=\"attachment-medium_large size-medium_large wp-image-1332\" alt=\"Fig2\" srcset=\"https:\/\/www.lancaster.ac.uk\/stor-i-student-sites\/thomas-newman\/wp-content\/uploads\/sites\/37\/2022\/03\/fig2-768x395.png 768w, https:\/\/www.lancaster.ac.uk\/stor-i-student-sites\/thomas-newman\/wp-content\/uploads\/sites\/37\/2022\/03\/fig2-300x154.png 300w, https:\/\/www.lancaster.ac.uk\/stor-i-student-sites\/thomas-newman\/wp-content\/uploads\/sites\/37\/2022\/03\/fig2-1024x526.png 1024w, https:\/\/www.lancaster.ac.uk\/stor-i-student-sites\/thomas-newman\/wp-content\/uploads\/sites\/37\/2022\/03\/fig2-1536x789.png 1536w, https:\/\/www.lancaster.ac.uk\/stor-i-student-sites\/thomas-newman\/wp-content\/uploads\/sites\/37\/2022\/03\/fig2.png 1763w\" sizes=\"(max-width: 768px) 100vw, 768px\" \/>\t\t\t\t\t\t\t\t\t\t\t<figcaption class=\"widget-image-caption wp-caption-text\">Figure 2: Boxplots of the daily number of attendances (left), number of admissions (centre) and  percentage of admissions (right) by days of the week at the A&amp;E from the beginning of 2016 to the end end of 2019.<\/figcaption>\n\t\t\t\t\t\t\t\t\t\t<\/figure>\n\t\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/section>\n\t\t\t\t<section class=\"elementor-section elementor-top-section elementor-element elementor-element-dcaa435 elementor-section-boxed elementor-section-height-default elementor-section-height-default\" data-id=\"dcaa435\" data-element_type=\"section\" data-e-type=\"section\">\n\t\t\t\t\t\t<div class=\"elementor-container elementor-column-gap-default\">\n\t\t\t\t\t<div class=\"elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-37e491e\" data-id=\"37e491e\" data-element_type=\"column\" data-e-type=\"column\">\n\t\t\t<div class=\"elementor-widget-wrap elementor-element-populated\">\n\t\t\t\t\t\t<div class=\"elementor-element elementor-element-f10abe1 elementor-widget elementor-widget-text-editor\" data-id=\"f10abe1\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t\t<p>Next, the previous analysis was repeated but looking at the relationship with hours of the day. The sample statistic clearly showed that on average the percentage of people being admitted depends on their arrival time. Between 2016 and the end of 2019, 32% of people arriving between 05:00 and 06:00 were on average admitted to the A&amp;E, compared to 17% for those who arrived between 19:00 and 20:00. Moreover, the boxplots reveal that between 02:00 and 06:00 the percentage of patients being admitted increased sharply, followed by a sudden decrease from 06:00 to 09:00. The opposite pattern is observed when looking at the hourly number of attendances at the A&amp;E.<\/p>\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/section>\n\t\t\t\t<section class=\"elementor-section elementor-top-section elementor-element elementor-element-9c3b8ed elementor-section-boxed elementor-section-height-default elementor-section-height-default\" data-id=\"9c3b8ed\" data-element_type=\"section\" data-e-type=\"section\">\n\t\t\t\t\t\t<div class=\"elementor-container elementor-column-gap-default\">\n\t\t\t\t\t<div class=\"elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-ad89967\" data-id=\"ad89967\" data-element_type=\"column\" data-e-type=\"column\">\n\t\t\t<div class=\"elementor-widget-wrap elementor-element-populated\">\n\t\t\t\t\t\t<div class=\"elementor-element elementor-element-70ccdd4 elementor-widget elementor-widget-heading\" data-id=\"70ccdd4\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"heading.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t<h3 class=\"elementor-heading-title elementor-size-default\">2.2 Relationship between the number of admissions\/attendances and patients\u2019 age<\/h3>\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/section>\n\t\t\t\t<section class=\"elementor-section elementor-top-section elementor-element elementor-element-1f5c591 elementor-section-boxed elementor-section-height-default elementor-section-height-default\" data-id=\"1f5c591\" data-element_type=\"section\" data-e-type=\"section\">\n\t\t\t\t\t\t<div class=\"elementor-container elementor-column-gap-default\">\n\t\t\t\t\t<div class=\"elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-8408b3d\" data-id=\"8408b3d\" data-element_type=\"column\" data-e-type=\"column\">\n\t\t\t<div class=\"elementor-widget-wrap elementor-element-populated\">\n\t\t\t\t\t\t<div class=\"elementor-element elementor-element-bbb530a elementor-widget elementor-widget-text-editor\" data-id=\"bbb530a\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t\t<p>Next we look at the relationship between the patients\u2019 age and the variables of interest, focusing on the daily figures when looking at admissions and attendances. An important point to make is that before being admitted, children under 16 who arrive at the A&amp;E are normally transferred to another hospital specialised for children. This explains why the percentage of people admitted is almost zero for the first three age groups. This will also affect the fourth age group (15-19 years old). Additionally, there is a lot of data (roughly 1460 daily figures) for all age groups where patients are under 95 years old. However, not as much data is available for the two eldest groups. There were 664 days where at least one patient between 95 and 99 years old attended the A&amp;E and only 80 days for patients 100 and over. Keeping this in mind, on average 10.56% of people attending the A&amp;E are between 20 and 24 years old. This figure gradually decreases as we look at elderly age groups, whereas, the percentage of people being admitted progressively increases. Also, there is a slight decrease in the percentage of admission for the 100+ group compared to the 3 groups preceding it.<\/p>\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/section>\n\t\t\t\t<section class=\"elementor-section elementor-top-section elementor-element elementor-element-6026ef3 elementor-section-boxed elementor-section-height-default elementor-section-height-default\" data-id=\"6026ef3\" data-element_type=\"section\" data-e-type=\"section\">\n\t\t\t\t\t\t<div class=\"elementor-container elementor-column-gap-default\">\n\t\t\t\t\t<div class=\"elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-09bcde6\" data-id=\"09bcde6\" data-element_type=\"column\" data-e-type=\"column\">\n\t\t\t<div class=\"elementor-widget-wrap elementor-element-populated\">\n\t\t\t\t\t\t<div class=\"elementor-element elementor-element-9aaf091 elementor-widget elementor-widget-image\" data-id=\"9aaf091\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"image.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t\t\t\t\t<figure class=\"wp-caption\">\n\t\t\t\t\t\t\t\t\t\t<img loading=\"lazy\" decoding=\"async\" width=\"768\" height=\"379\" src=\"https:\/\/www.lancaster.ac.uk\/stor-i-student-sites\/thomas-newman\/wp-content\/uploads\/sites\/37\/2022\/03\/fig3-768x379.png\" class=\"attachment-medium_large size-medium_large wp-image-1339\" alt=\"Fig3\" srcset=\"https:\/\/www.lancaster.ac.uk\/stor-i-student-sites\/thomas-newman\/wp-content\/uploads\/sites\/37\/2022\/03\/fig3-768x379.png 768w, https:\/\/www.lancaster.ac.uk\/stor-i-student-sites\/thomas-newman\/wp-content\/uploads\/sites\/37\/2022\/03\/fig3-300x148.png 300w, https:\/\/www.lancaster.ac.uk\/stor-i-student-sites\/thomas-newman\/wp-content\/uploads\/sites\/37\/2022\/03\/fig3-1024x505.png 1024w, https:\/\/www.lancaster.ac.uk\/stor-i-student-sites\/thomas-newman\/wp-content\/uploads\/sites\/37\/2022\/03\/fig3-1536x758.png 1536w, https:\/\/www.lancaster.ac.uk\/stor-i-student-sites\/thomas-newman\/wp-content\/uploads\/sites\/37\/2022\/03\/fig3.png 1774w\" sizes=\"(max-width: 768px) 100vw, 768px\" \/>\t\t\t\t\t\t\t\t\t\t\t<figcaption class=\"widget-image-caption wp-caption-text\">Figure 3. Boxplot of the total daily number of attendances per age group at the A&amp;E from the beginning of 2016 to the end of 2019.<\/figcaption>\n\t\t\t\t\t\t\t\t\t\t<\/figure>\n\t\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/section>\n\t\t\t\t<section class=\"elementor-section elementor-top-section elementor-element elementor-element-0527513 elementor-section-boxed elementor-section-height-default elementor-section-height-default\" data-id=\"0527513\" data-element_type=\"section\" data-e-type=\"section\">\n\t\t\t\t\t\t<div class=\"elementor-container elementor-column-gap-default\">\n\t\t\t\t\t<div class=\"elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-c5a2860\" data-id=\"c5a2860\" data-element_type=\"column\" data-e-type=\"column\">\n\t\t\t<div class=\"elementor-widget-wrap elementor-element-populated\">\n\t\t\t\t\t\t<div class=\"elementor-element elementor-element-5e9879a elementor-widget elementor-widget-image\" data-id=\"5e9879a\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"image.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t\t\t\t\t<figure class=\"wp-caption\">\n\t\t\t\t\t\t\t\t\t\t<img loading=\"lazy\" decoding=\"async\" width=\"768\" height=\"373\" src=\"https:\/\/www.lancaster.ac.uk\/stor-i-student-sites\/thomas-newman\/wp-content\/uploads\/sites\/37\/2022\/03\/fig4-768x373.png\" class=\"attachment-medium_large size-medium_large wp-image-1340\" alt=\"Fig4\" srcset=\"https:\/\/www.lancaster.ac.uk\/stor-i-student-sites\/thomas-newman\/wp-content\/uploads\/sites\/37\/2022\/03\/fig4-768x373.png 768w, https:\/\/www.lancaster.ac.uk\/stor-i-student-sites\/thomas-newman\/wp-content\/uploads\/sites\/37\/2022\/03\/fig4-300x146.png 300w, https:\/\/www.lancaster.ac.uk\/stor-i-student-sites\/thomas-newman\/wp-content\/uploads\/sites\/37\/2022\/03\/fig4-1024x498.png 1024w, https:\/\/www.lancaster.ac.uk\/stor-i-student-sites\/thomas-newman\/wp-content\/uploads\/sites\/37\/2022\/03\/fig4-1536x747.png 1536w, https:\/\/www.lancaster.ac.uk\/stor-i-student-sites\/thomas-newman\/wp-content\/uploads\/sites\/37\/2022\/03\/fig4.png 1738w\" sizes=\"(max-width: 768px) 100vw, 768px\" \/>\t\t\t\t\t\t\t\t\t\t\t<figcaption class=\"widget-image-caption wp-caption-text\">Figure 4: Boxplot of the daily percentage of patients being admitted per age group at the A&amp;E from the beginning of 2016 to the end of 2019.<\/figcaption>\n\t\t\t\t\t\t\t\t\t\t<\/figure>\n\t\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/section>\n\t\t\t\t<section class=\"elementor-section elementor-top-section elementor-element elementor-element-dadcb34 elementor-section-boxed elementor-section-height-default elementor-section-height-default\" data-id=\"dadcb34\" data-element_type=\"section\" data-e-type=\"section\">\n\t\t\t\t\t\t<div class=\"elementor-container elementor-column-gap-default\">\n\t\t\t\t\t<div class=\"elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-045668e\" data-id=\"045668e\" data-element_type=\"column\" data-e-type=\"column\">\n\t\t\t<div class=\"elementor-widget-wrap elementor-element-populated\">\n\t\t\t\t\t\t<div class=\"elementor-element elementor-element-04b3b30 elementor-widget elementor-widget-heading\" data-id=\"04b3b30\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"heading.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t<h3 class=\"elementor-heading-title elementor-size-default\">2.3 Relationship between the number of admissions\/attendances and \npatients\u2019 referral source\n<\/h3>\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/section>\n\t\t\t\t<section class=\"elementor-section elementor-top-section elementor-element elementor-element-8cb598a elementor-section-boxed elementor-section-height-default elementor-section-height-default\" data-id=\"8cb598a\" data-element_type=\"section\" data-e-type=\"section\">\n\t\t\t\t\t\t<div class=\"elementor-container elementor-column-gap-default\">\n\t\t\t\t\t<div class=\"elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-9351259\" data-id=\"9351259\" data-element_type=\"column\" data-e-type=\"column\">\n\t\t\t<div class=\"elementor-widget-wrap elementor-element-populated\">\n\t\t\t\t\t\t<div class=\"elementor-element elementor-element-d312d35 elementor-widget elementor-widget-text-editor\" data-id=\"d312d35\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t\t<p>We finally analyse the relationship between admissions and patients\u2019 referral sources. On average, between 2016 and the end of 2019, 63% of people attending the A&amp;E are self-referred and 28% are from 999 emergency services. However, self-referrals represent only 37% of all admissions. The sample statistics shows that on average only 18% of self-referrals are admitted to A&amp;E. Contrarily, patients referred to the A&amp;E from Out of Hours have the highest average admission percentage (80%). However, remember that some patients are not admitted because they are sent elsewhere to receive treatments. Additionally, there is a large difference between the mean and median percentage admission for all referral sources. This is probably due to outliers, such as special circumstances where an unusually high or low percentage of people were admitted.<\/p>\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/section>\n\t\t\t\t<section class=\"elementor-section elementor-top-section elementor-element elementor-element-c76e99f elementor-section-boxed elementor-section-height-default elementor-section-height-default\" data-id=\"c76e99f\" data-element_type=\"section\" data-e-type=\"section\">\n\t\t\t\t\t\t<div class=\"elementor-container elementor-column-gap-default\">\n\t\t\t\t\t<div class=\"elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-5f55f7a\" data-id=\"5f55f7a\" data-element_type=\"column\" data-e-type=\"column\">\n\t\t\t<div class=\"elementor-widget-wrap elementor-element-populated\">\n\t\t\t\t\t\t<div class=\"elementor-element elementor-element-7e69180 elementor-widget elementor-widget-image\" data-id=\"7e69180\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"image.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t\t\t\t\t<figure class=\"wp-caption\">\n\t\t\t\t\t\t\t\t\t\t<img loading=\"lazy\" decoding=\"async\" width=\"768\" height=\"371\" src=\"https:\/\/www.lancaster.ac.uk\/stor-i-student-sites\/thomas-newman\/wp-content\/uploads\/sites\/37\/2022\/03\/fig5-768x371.png\" class=\"attachment-medium_large size-medium_large wp-image-1353\" alt=\"Fig5\" srcset=\"https:\/\/www.lancaster.ac.uk\/stor-i-student-sites\/thomas-newman\/wp-content\/uploads\/sites\/37\/2022\/03\/fig5-768x371.png 768w, https:\/\/www.lancaster.ac.uk\/stor-i-student-sites\/thomas-newman\/wp-content\/uploads\/sites\/37\/2022\/03\/fig5-300x145.png 300w, https:\/\/www.lancaster.ac.uk\/stor-i-student-sites\/thomas-newman\/wp-content\/uploads\/sites\/37\/2022\/03\/fig5-1024x495.png 1024w, https:\/\/www.lancaster.ac.uk\/stor-i-student-sites\/thomas-newman\/wp-content\/uploads\/sites\/37\/2022\/03\/fig5.png 1493w\" sizes=\"(max-width: 768px) 100vw, 768px\" \/>\t\t\t\t\t\t\t\t\t\t\t<figcaption class=\"widget-image-caption wp-caption-text\">Figure 5: Boxplot of the daily percentage of patients being admitted per referral source at the A&amp;E from beginning of 2016 to the end of 2019.<\/figcaption>\n\t\t\t\t\t\t\t\t\t\t<\/figure>\n\t\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/section>\n\t\t\t\t<section class=\"elementor-section elementor-top-section elementor-element elementor-element-f2c55e6 elementor-section-boxed elementor-section-height-default elementor-section-height-default\" data-id=\"f2c55e6\" data-element_type=\"section\" data-e-type=\"section\">\n\t\t\t\t\t\t<div class=\"elementor-container elementor-column-gap-default\">\n\t\t\t\t\t<div class=\"elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-25adf71\" data-id=\"25adf71\" data-element_type=\"column\" data-e-type=\"column\">\n\t\t\t<div class=\"elementor-widget-wrap elementor-element-populated\">\n\t\t\t\t\t\t<div class=\"elementor-element elementor-element-e5aef2a elementor-widget elementor-widget-heading\" data-id=\"e5aef2a\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"heading.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t<h3 class=\"elementor-heading-title elementor-size-default\">2.4 Exploratory data analysis of the time series for daily number of Attendances at A&amp;E<\/h3>\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/section>\n\t\t\t\t<section class=\"elementor-section elementor-top-section elementor-element elementor-element-af6bd30 elementor-section-boxed elementor-section-height-default elementor-section-height-default\" data-id=\"af6bd30\" data-element_type=\"section\" data-e-type=\"section\">\n\t\t\t\t\t\t<div class=\"elementor-container elementor-column-gap-default\">\n\t\t\t\t\t<div class=\"elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-3a8d2d0\" data-id=\"3a8d2d0\" data-element_type=\"column\" data-e-type=\"column\">\n\t\t\t<div class=\"elementor-widget-wrap elementor-element-populated\">\n\t\t\t\t\t\t<div class=\"elementor-element elementor-element-2408e94 elementor-widget elementor-widget-text-editor\" data-id=\"2408e94\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t\t<p>Before trying to model the attendances at A&amp;E, it is good practice to look for patterns in the data and identify their main characteristics. To simplify the analysis, all of 2020 data has been removed as A&amp;E attendances have been affected by COVID-19. Only data from January 1st, 2012 till December 31st 2019 has been used. As seen in the previous section, the average number of attendances at the A&amp;E differ by day of the week. The average number of attendances also seems to differ every month (Fig.6). It appears that summer months have on average a higher number of attendances than winter months. However, there is a sudden drop in attendances in June. Also, December might have a higher number of attendances than expected due to it being a period of celebration which is known to cause an increase in the number of accidents.<\/p>\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/section>\n\t\t\t\t<section class=\"elementor-section elementor-top-section elementor-element elementor-element-38dcb60 elementor-section-boxed elementor-section-height-default elementor-section-height-default\" data-id=\"38dcb60\" data-element_type=\"section\" data-e-type=\"section\">\n\t\t\t\t\t\t<div class=\"elementor-container elementor-column-gap-default\">\n\t\t\t\t\t<div class=\"elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-ee94483\" data-id=\"ee94483\" data-element_type=\"column\" data-e-type=\"column\">\n\t\t\t<div class=\"elementor-widget-wrap elementor-element-populated\">\n\t\t\t\t\t\t<div class=\"elementor-element elementor-element-4aae242 elementor-widget elementor-widget-image\" data-id=\"4aae242\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"image.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t\t\t\t\t<figure class=\"wp-caption\">\n\t\t\t\t\t\t\t\t\t\t<img loading=\"lazy\" decoding=\"async\" width=\"768\" height=\"371\" src=\"https:\/\/www.lancaster.ac.uk\/stor-i-student-sites\/thomas-newman\/wp-content\/uploads\/sites\/37\/2022\/03\/fig6-768x371.png\" class=\"attachment-medium_large size-medium_large wp-image-1360\" alt=\"Fig6\" srcset=\"https:\/\/www.lancaster.ac.uk\/stor-i-student-sites\/thomas-newman\/wp-content\/uploads\/sites\/37\/2022\/03\/fig6-768x371.png 768w, https:\/\/www.lancaster.ac.uk\/stor-i-student-sites\/thomas-newman\/wp-content\/uploads\/sites\/37\/2022\/03\/fig6-300x145.png 300w, https:\/\/www.lancaster.ac.uk\/stor-i-student-sites\/thomas-newman\/wp-content\/uploads\/sites\/37\/2022\/03\/fig6-1024x494.png 1024w, https:\/\/www.lancaster.ac.uk\/stor-i-student-sites\/thomas-newman\/wp-content\/uploads\/sites\/37\/2022\/03\/fig6-1536x741.png 1536w, https:\/\/www.lancaster.ac.uk\/stor-i-student-sites\/thomas-newman\/wp-content\/uploads\/sites\/37\/2022\/03\/fig6.png 1718w\" sizes=\"(max-width: 768px) 100vw, 768px\" \/>\t\t\t\t\t\t\t\t\t\t\t<figcaption class=\"widget-image-caption wp-caption-text\">Figure 6: Boxplot of the daily number of attendances at the A&amp;E by months between 2012 and the end of 2019.<\/figcaption>\n\t\t\t\t\t\t\t\t\t\t<\/figure>\n\t\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/section>\n\t\t\t\t<section class=\"elementor-section elementor-top-section elementor-element elementor-element-ed40579 elementor-section-boxed elementor-section-height-default elementor-section-height-default\" data-id=\"ed40579\" data-element_type=\"section\" data-e-type=\"section\">\n\t\t\t\t\t\t<div class=\"elementor-container elementor-column-gap-default\">\n\t\t\t\t\t<div class=\"elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-b5dfb83\" data-id=\"b5dfb83\" data-element_type=\"column\" data-e-type=\"column\">\n\t\t\t<div class=\"elementor-widget-wrap elementor-element-populated\">\n\t\t\t\t\t\t<div class=\"elementor-element elementor-element-f58801e elementor-widget elementor-widget-text-editor\" data-id=\"f58801e\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t\t<p>To confirm the presence of both weekly and yearly seasonality in the data, Autocorrelation Function (ACF) plots (Fig.7, Fig.8) and Partial Autocorrelation Function (PACF) plots were created. The ACF plot corresponding to daily attendances shows significant spikes at lags which are multiples of 7. The one for monthly attendances has significant spikes at lags 12 and 24. This confirms the presence of weekly and yearly seasonality in the data. In both ACF plots, the size of the spikes decreases as the lags increase, which is due to the presence of trend in the data.<\/p>\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/section>\n\t\t\t\t<section class=\"elementor-section elementor-top-section elementor-element elementor-element-5ceddd4 elementor-section-boxed elementor-section-height-default elementor-section-height-default\" data-id=\"5ceddd4\" data-element_type=\"section\" data-e-type=\"section\">\n\t\t\t\t\t\t<div class=\"elementor-container elementor-column-gap-default\">\n\t\t\t\t\t<div class=\"elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-cbd3241\" data-id=\"cbd3241\" data-element_type=\"column\" data-e-type=\"column\">\n\t\t\t<div class=\"elementor-widget-wrap elementor-element-populated\">\n\t\t\t\t\t\t<div class=\"elementor-element elementor-element-2cf582e elementor-widget elementor-widget-image\" data-id=\"2cf582e\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"image.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t\t\t\t\t<figure class=\"wp-caption\">\n\t\t\t\t\t\t\t\t\t\t<img loading=\"lazy\" decoding=\"async\" width=\"768\" height=\"387\" src=\"https:\/\/www.lancaster.ac.uk\/stor-i-student-sites\/thomas-newman\/wp-content\/uploads\/sites\/37\/2022\/03\/fig7-768x387.png\" class=\"attachment-medium_large size-medium_large wp-image-1361\" alt=\"Fig7\" srcset=\"https:\/\/www.lancaster.ac.uk\/stor-i-student-sites\/thomas-newman\/wp-content\/uploads\/sites\/37\/2022\/03\/fig7-768x387.png 768w, https:\/\/www.lancaster.ac.uk\/stor-i-student-sites\/thomas-newman\/wp-content\/uploads\/sites\/37\/2022\/03\/fig7-300x151.png 300w, https:\/\/www.lancaster.ac.uk\/stor-i-student-sites\/thomas-newman\/wp-content\/uploads\/sites\/37\/2022\/03\/fig7-1024x517.png 1024w, https:\/\/www.lancaster.ac.uk\/stor-i-student-sites\/thomas-newman\/wp-content\/uploads\/sites\/37\/2022\/03\/fig7-1536x775.png 1536w, https:\/\/www.lancaster.ac.uk\/stor-i-student-sites\/thomas-newman\/wp-content\/uploads\/sites\/37\/2022\/03\/fig7.png 1776w\" sizes=\"(max-width: 768px) 100vw, 768px\" \/>\t\t\t\t\t\t\t\t\t\t\t<figcaption class=\"widget-image-caption wp-caption-text\">Figure 7: ACF plot of daily attendances at the A&amp;E.<\/figcaption>\n\t\t\t\t\t\t\t\t\t\t<\/figure>\n\t\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/section>\n\t\t\t\t<section class=\"elementor-section elementor-top-section elementor-element elementor-element-cc27e43 elementor-section-boxed elementor-section-height-default elementor-section-height-default\" data-id=\"cc27e43\" data-element_type=\"section\" data-e-type=\"section\">\n\t\t\t\t\t\t<div class=\"elementor-container elementor-column-gap-default\">\n\t\t\t\t\t<div class=\"elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-26f5397\" data-id=\"26f5397\" data-element_type=\"column\" data-e-type=\"column\">\n\t\t\t<div class=\"elementor-widget-wrap elementor-element-populated\">\n\t\t\t\t\t\t<div class=\"elementor-element elementor-element-9c6ab25 elementor-widget elementor-widget-image\" data-id=\"9c6ab25\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"image.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t\t\t\t\t<figure class=\"wp-caption\">\n\t\t\t\t\t\t\t\t\t\t<img loading=\"lazy\" decoding=\"async\" width=\"768\" height=\"389\" src=\"https:\/\/www.lancaster.ac.uk\/stor-i-student-sites\/thomas-newman\/wp-content\/uploads\/sites\/37\/2022\/03\/fig8-768x389.png\" class=\"attachment-medium_large size-medium_large wp-image-1362\" alt=\"Fig8\" srcset=\"https:\/\/www.lancaster.ac.uk\/stor-i-student-sites\/thomas-newman\/wp-content\/uploads\/sites\/37\/2022\/03\/fig8-768x389.png 768w, https:\/\/www.lancaster.ac.uk\/stor-i-student-sites\/thomas-newman\/wp-content\/uploads\/sites\/37\/2022\/03\/fig8-300x152.png 300w, https:\/\/www.lancaster.ac.uk\/stor-i-student-sites\/thomas-newman\/wp-content\/uploads\/sites\/37\/2022\/03\/fig8-1024x518.png 1024w, https:\/\/www.lancaster.ac.uk\/stor-i-student-sites\/thomas-newman\/wp-content\/uploads\/sites\/37\/2022\/03\/fig8-1536x778.png 1536w, https:\/\/www.lancaster.ac.uk\/stor-i-student-sites\/thomas-newman\/wp-content\/uploads\/sites\/37\/2022\/03\/fig8.png 1776w\" sizes=\"(max-width: 768px) 100vw, 768px\" \/>\t\t\t\t\t\t\t\t\t\t\t<figcaption class=\"widget-image-caption wp-caption-text\">Figure 8: ACF plot of monthly attendances at the A&amp;E.<\/figcaption>\n\t\t\t\t\t\t\t\t\t\t<\/figure>\n\t\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/section>\n\t\t\t\t<section class=\"elementor-section elementor-top-section elementor-element elementor-element-940886b elementor-section-boxed elementor-section-height-default elementor-section-height-default\" data-id=\"940886b\" data-element_type=\"section\" data-e-type=\"section\">\n\t\t\t\t\t\t<div class=\"elementor-container elementor-column-gap-default\">\n\t\t\t\t\t<div class=\"elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-20a4149\" data-id=\"20a4149\" data-element_type=\"column\" data-e-type=\"column\">\n\t\t\t<div class=\"elementor-widget-wrap elementor-element-populated\">\n\t\t\t\t\t\t<div class=\"elementor-element elementor-element-9316f94 elementor-widget elementor-widget-text-editor\" data-id=\"9316f94\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t\t<p>In the <a href=\"https:\/\/www.lancaster.ac.uk\/stor-i-student-sites\/thomas-newman\/2022\/03\/15\/daily-attendances-in-accident-and-emergency-departments-forecasting-attendances\/\" target=\"_blank\" rel=\"noopener\">next blog<\/a> we will use the information we have from the EDA and attempt to forecast the the daily number of attendances at A&amp;E. (<a href=\"https:\/\/www.lancaster.ac.uk\/stor-i-student-sites\/thomas-newman\/2022\/03\/15\/daily-attendances-in-accident-and-emergency-departments-forecasting-attendances\/\" target=\"_blank\" rel=\"noopener\">Click here<\/a>)<\/p>\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/section>\n\t\t\t\t<\/div>\n\t\t","protected":false},"excerpt":{"rendered":"<p>This two part blog will focus on the attendances at an&nbsp;accident&nbsp;and emergency department&nbsp;(A&amp;E)&nbsp;in a major hospital in the United Kingdom between the beginning of 2016 and the end of 2019. This first blog looks into analysing the relationships between the daily number of admissions\/attendances at the hospital\u2019s A&amp;E and patients\u2019 age\/referral source\/arrival date\/time. In the [&hellip;]<\/p>\n","protected":false},"author":40,"featured_media":1377,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"ocean_post_layout":"full-width","ocean_both_sidebars_style":"","ocean_both_sidebars_content_width":0,"ocean_both_sidebars_sidebars_width":0,"ocean_sidebar":"0","ocean_second_sidebar":"0","ocean_disable_margins":"enable","ocean_add_body_class":"","ocean_shortcode_before_top_bar":"","ocean_shortcode_after_top_bar":"","ocean_shortcode_before_header":"","ocean_shortcode_after_header":"","ocean_has_shortcode":"","ocean_shortcode_after_title":"","ocean_shortcode_before_footer_widgets":"","ocean_shortcode_after_footer_widgets":"","ocean_shortcode_before_footer_bottom":"","ocean_shortcode_after_footer_bottom":"","ocean_display_top_bar":"default","ocean_display_header":"default","ocean_header_style":"","ocean_center_header_left_menu":"0","ocean_custom_header_template":"0","ocean_custom_logo":0,"ocean_custom_retina_logo":0,"ocean_custom_logo_max_width":0,"ocean_custom_logo_tablet_max_width":0,"ocean_custom_logo_mobile_max_width":0,"ocean_custom_logo_max_height":0,"ocean_custom_logo_tablet_max_height":0,"ocean_custom_logo_mobile_max_height":0,"ocean_header_custom_menu":"0","ocean_menu_typo_font_family":"0","ocean_menu_typo_font_subset":"","ocean_menu_typo_font_size":0,"ocean_menu_typo_font_size_tablet":0,"ocean_menu_typo_font_size_mobile":0,"ocean_menu_typo_font_size_unit":"px","ocean_menu_typo_font_weight":"","ocean_menu_typo_font_weight_tablet":"","ocean_menu_typo_font_weight_mobile":"","ocean_menu_typo_transform":"","ocean_menu_typo_transform_tablet":"","ocean_menu_typo_transform_mobile":"","ocean_menu_typo_line_height":0,"ocean_menu_typo_line_height_tablet":0,"ocean_menu_typo_line_height_mobile":0,"ocean_menu_typo_line_height_unit":"","ocean_menu_typo_spacing":0,"ocean_menu_typo_spacing_tablet":0,"ocean_menu_typo_spacing_mobile":0,"ocean_menu_typo_spacing_unit":"","ocean_menu_link_color":"","ocean_menu_link_color_hover":"","ocean_menu_link_color_active":"","ocean_menu_link_background":"","ocean_menu_link_hover_background":"","ocean_menu_link_active_background":"","ocean_menu_social_links_bg":"","ocean_menu_social_hover_links_bg":"","ocean_menu_social_links_color":"","ocean_menu_social_hover_links_color":"","ocean_disable_title":"default","ocean_disable_heading":"default","ocean_post_title":"","ocean_post_subheading":"","ocean_post_title_style":"","ocean_post_title_background_color":"","ocean_post_title_background":0,"ocean_post_title_bg_image_position":"","ocean_post_title_bg_image_attachment":"","ocean_post_title_bg_image_repeat":"","ocean_post_title_bg_image_size":"","ocean_post_title_height":0,"ocean_post_title_bg_overlay":0.5,"ocean_post_title_bg_overlay_color":"","ocean_disable_breadcrumbs":"default","ocean_breadcrumbs_color":"","ocean_breadcrumbs_separator_color":"","ocean_breadcrumbs_links_color":"","ocean_breadcrumbs_links_hover_color":"","ocean_display_footer_widgets":"default","ocean_display_footer_bottom":"default","ocean_custom_footer_template":"0","slim_seo":{"title":"(Part 1) Daily attendances in accident and emergency departments - Exploratory data analysis - Thomas Newman","description":"This two part blog will focus on the attendances at an&nbsp;accident&nbsp;and emergency department&nbsp;(A&amp;E)&nbsp;in a major hospital in the United Kingdom"},"ocean_post_oembed":"","ocean_post_self_hosted_media":"","ocean_post_video_embed":"","ocean_link_format":"","ocean_link_format_target":"self","ocean_quote_format":"","ocean_quote_format_link":"post","ocean_gallery_link_images":"off","ocean_gallery_id":[],"footnotes":""},"categories":[11],"tags":[],"class_list":["post-1290","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-statistics","entry","has-media"],"_links":{"self":[{"href":"https:\/\/www.lancaster.ac.uk\/stor-i-student-sites\/thomas-newman\/wp-json\/wp\/v2\/posts\/1290","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.lancaster.ac.uk\/stor-i-student-sites\/thomas-newman\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.lancaster.ac.uk\/stor-i-student-sites\/thomas-newman\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.lancaster.ac.uk\/stor-i-student-sites\/thomas-newman\/wp-json\/wp\/v2\/users\/40"}],"replies":[{"embeddable":true,"href":"https:\/\/www.lancaster.ac.uk\/stor-i-student-sites\/thomas-newman\/wp-json\/wp\/v2\/comments?post=1290"}],"version-history":[{"count":122,"href":"https:\/\/www.lancaster.ac.uk\/stor-i-student-sites\/thomas-newman\/wp-json\/wp\/v2\/posts\/1290\/revisions"}],"predecessor-version":[{"id":1613,"href":"https:\/\/www.lancaster.ac.uk\/stor-i-student-sites\/thomas-newman\/wp-json\/wp\/v2\/posts\/1290\/revisions\/1613"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.lancaster.ac.uk\/stor-i-student-sites\/thomas-newman\/wp-json\/wp\/v2\/media\/1377"}],"wp:attachment":[{"href":"https:\/\/www.lancaster.ac.uk\/stor-i-student-sites\/thomas-newman\/wp-json\/wp\/v2\/media?parent=1290"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.lancaster.ac.uk\/stor-i-student-sites\/thomas-newman\/wp-json\/wp\/v2\/categories?post=1290"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.lancaster.ac.uk\/stor-i-student-sites\/thomas-newman\/wp-json\/wp\/v2\/tags?post=1290"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}