<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Martinez Mba on Medium]]></title>
        <description><![CDATA[Stories by Martinez Mba on Medium]]></description>
        <link>https://medium.com/@mbamartinez013?source=rss-646bec5d6d27------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*Tej7z0_LTvCKMOAXnSb04w.jpeg</url>
            <title>Stories by Martinez Mba on Medium</title>
            <link>https://medium.com/@mbamartinez013?source=rss-646bec5d6d27------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Mon, 30 Nov 2026 23:43:15 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@mbamartinez013/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[ANALYSIS OF GLOBAL MONKEYPOX OUTBREAK WITH R PROGRAMMING]]></title>
            <link>https://medium.com/@mbamartinez013/analysis-of-global-monkeypox-outbreak-with-r-programming-20cd802b89c2?source=rss-646bec5d6d27------2</link>
            <guid isPermaLink="false">https://medium.com/p/20cd802b89c2</guid>
            <category><![CDATA[data-visualization]]></category>
            <category><![CDATA[monkeypox]]></category>
            <category><![CDATA[data-analytics]]></category>
            <category><![CDATA[rstudio]]></category>
            <category><![CDATA[ggplot2]]></category>
            <dc:creator><![CDATA[Martinez Mba]]></dc:creator>
            <pubDate>Mon, 20 Jun 2022 19:40:46 GMT</pubDate>
            <atom:updated>2022-06-20T20:27:30.850Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/612/1*96QZK1uDOOZ3NseNj_x8Hg.jpeg" /></figure><p>GLOBAL DAILY RECORDS OF THE 2022 OUTBREAK SINCE MAY</p><p><strong>INTRODUCTION</strong></p><p>Monkey pox is a viral zoonotic disease condition (transmitted from animals to humans) with symptoms that are similar to those found in smallpox although clinically less severe. First discovered in the year 1958 when two cases occurred in a group of monkeys kept for research. The first documented case in humans, however, was in 1970 in DRC Congo. A recent outbreak is continuously growing in countries where the virus isn’t normally found putting global health officials on alert.</p><p><strong>ASK</strong></p><p>The important questions guiding the analysis:</p><p>•<em> Are there any trends associated with the outbreak?</em></p><p>• <em>How can these trends influence healthcare policies and decision making?</em></p><p><strong>PREPARE</strong></p><p><strong><em>Sourcing data</em></strong>: the data used for this analysis is a daily updated free and open source data which records both suspected and confirmed cases globally. The data was primarily created by the World Health Organization and sourced from <strong><em>Kaggle</em></strong>. Data set can be found <a href="https://www.kaggle.com/datasets/andrewmvd/global-monkeypox-cases">here</a>:</p><p><strong><em>Organizing data</em></strong>: the dataset is structured in a csv file and is made up of <strong>32</strong> <strong>columns</strong> and <strong>2426 rows</strong>. The information included in this dataset include <strong><em>countries</em></strong> , <strong><em>status</em></strong> of diagnosis, <strong><em>city</em></strong>, <strong><em>age</em></strong>, <strong><em>date of confirmation</em></strong> and <strong><em>method of confirmation</em></strong>, among others.</p><p><strong><em>Data licensing and privacy</em></strong>: The Metadata indicates that the data is free, open source and accessible to the public for use.</p><p><strong>PROCESSING</strong></p><p><strong><em>Data preparation</em></strong>: the dataset was converted to an excel file before imported into R Studio.</p><p><strong>NOTE</strong>: it is also possible and easy to import the file as csv. However I chose this process because I had already converted the file for first exploration in Excel.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Cnm0bikZeCmHmU9XqKg-fg.png" /><figcaption>importing dataset into RStudio</figcaption></figure><p><strong>Data cleaning</strong></p><p>The cleaning phase of this exercise involved the use of <strong>TIDYVERSE</strong> packages(especially DPLYR,TIDYR,READR,STRINGR) in R. The packages are pre-installed , they will just be loaded from the <strong>LIBRARY</strong>. Other packages that will be needed for this entire exercise are <strong><em>LUBRIDATE</em></strong>, <strong><em>GGPLOT2</em></strong>, and <strong><em>MAPS</em></strong>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/462/1*bRwzKT9PiJ0dE9xJs3C_jw.jpeg" /><figcaption>loading R packages</figcaption></figure><p>Codes used to preview the dataset and make required changes to the columns such as selecting preferred columns to show and renaming other, as well as to arrange them according to preference.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/458/1*BvBkcCmYyDd_hAjCPclmBA.jpeg" /><figcaption>To view, rename and arrange the data to preference</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*7el41BNY-AbMGgxqcbSfig.jpeg" /><figcaption>Note: # describe the process being accomplished by the code</figcaption></figure><p><strong>ANALYZE</strong></p><p>Now that the data is clean and arranged in my preferred order, the analysis could then be carried out.</p><p>Trends that were looked out for were:</p><ul><li><em>Rate of infection globally using the number of recorded confirmed cases per day.</em></li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*0m0zLnI7tWYaxy9QYz4Zyw.jpeg" /></figure><ul><li><em>Age distribution of patients with confirmed cases.</em></li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/847/1*HEQb46OCRAEs8BWYMPbXQw.jpeg" /></figure><ul><li><em>Male VS Female distribution of cases.</em></li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*feStvss0NYjZYWClIE1yCQ.jpeg" /></figure><ul><li><em>Infection Hotbeds across the world.</em></li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/831/1*2f0egHyA8Sbe1MmnVdeKnA.jpeg" /></figure><ul><li><em>Most common symptom that should be expected.</em></li></ul><p>this variable was determined using <a href="https://wordart.com/create"><em>wordcloud</em></a> to compute all the symptoms reported and generate the most common once by font size.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*aRr_XcRK5-RjSpaunKvBjA.png" /></figure><p><strong>Findings</strong> :</p><ul><li><em>Rate of infection</em></li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/634/1*bpzabHLMWZ-n8P8I7Bv2gQ.jpeg" /></figure><ul><li><em>Most cases are males.</em></li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/704/1*O6Vy7Bz2B7BymbX0uQg93w.jpeg" /></figure><ul><li><em>People between the ages of </em><strong><em>20 &amp; 64</em></strong><em> are the most affected.</em></li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/704/1*N1iaSYfdYvF7z96RQyD5iA.jpeg" /></figure><ul><li><em>Western Europe is the most affected region in the world.</em></li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/704/1*_CQBs34H1NscyCrgHaR5YQ.jpeg" /></figure><ul><li><em>The most common symptom to expect is Ulcerative lesions especially in the genitals</em></li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/755/1*LsDKB1PN-cuzitUP8PJjPQ.jpeg" /><figcaption>Genital lesions are the most common presentations</figcaption></figure><p><strong>ACT</strong></p><p><strong><em>Strategic Recommendations</em></strong>:</p><p>• Increased availability of specific drugs for Symptomatic management of genital ulcers based on the fact that most cases will present with this.</p><p>• <em>Immigration policy reforms to include measures to curtail spread and flatten the rising curve.</em></p><p>• <em>Resources and human personal for Vaccinations and treatment should be concentrated on Western Europe more than any other part of the world for this current outbreak.</em></p><p><strong>SOURCES</strong>:</p><p><a href="https://www.kaggle.com/datasets/andrewmvd/global-monkeypox-cases">kaggle</a></p><p><a href="https://www.who.int/news-room/fact-sheets/detail/monkeypox">WHO Monkeypox</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=20cd802b89c2" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Analysis of MASS SHOOTINGS IN AMERICA]]></title>
            <link>https://medium.com/@mbamartinez013/mass-shootings-in-america-b1c61a611bd7?source=rss-646bec5d6d27------2</link>
            <guid isPermaLink="false">https://medium.com/p/b1c61a611bd7</guid>
            <category><![CDATA[excel-dashboard]]></category>
            <category><![CDATA[mass-shootings]]></category>
            <category><![CDATA[google-analytics]]></category>
            <category><![CDATA[data-analytics]]></category>
            <category><![CDATA[data-visualization]]></category>
            <dc:creator><![CDATA[Martinez Mba]]></dc:creator>
            <pubDate>Sun, 05 Jun 2022 20:35:50 GMT</pubDate>
            <atom:updated>2022-06-20T02:07:39.108Z</atom:updated>
            <content:encoded><![CDATA[<h4>An Exploratory Analysis from 1982–2022</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/739/1*I7JByl8Gs3hTK6fUpMLyLA.jpeg" /></figure><p>In light of the recent mass shootings in the United States of America, I decided to carry out a retrospective analysis of mass shootings since 1982 when verifiable records began. The objective of this analysis is to help generate insight on how best to make gun related reforms.</p><p>The dataset used for this analysis originates from a secondary source website, Mother Jones <a href="https://www.motherjones.com/politics/2012/12/mass-shootings-mother-jones-full-data/">https://www.motherjones.com/politics/2012/12/mass-shootings-mother-jones-full-data/</a> , and was originally sourced from multiple news sites and bureau. The dataset includes 129 rows and 24 columns. It details the facts of mass shooting incidents across all the states that have recorded at least one case since 1982 and as recent as the Uvalde, Texas elementary school shootings in 2022. This dataset contains categories including the case, the location where it occurred (both states and county), the date of occurrence , links to news websites where they are documented, the race of the shooters, weapons used and whether these weapons were legally purchased or not, among other categories.</p><p>This project was undertaken to provide an in-depth analysis of the data, thereby generating insight that could influence the decision making process in gun reforms across states.</p><p><strong>Ask</strong></p><p>We will be using this data to answer the following questions:</p><p>1. <em>What states have suffered most from mass shooting incidents.</em></p><p><em>2. Are these crimes somehow related to the state-specific gun laws?</em></p><p><em>3. Is there any racial preponderance and relationship to mental health in mass shootings?</em></p><p><em>4. What locations are the likely places for one to fall victim of mass shootings.</em></p><p><em>5. What type of weapons are mass shooters likely going to use.</em></p><p><strong>Data Preparation</strong></p><p>The dataset is from an external, secondary open source. Downloadable from <a href="https://www.motherjones.com/politics/2012/12/mass-shootings-mother-jones-full-data/">Mother Jones</a> as a .csv file. This was first converted into an .xlsx file. The raw data needed some work and cleaning and augmentation, hence the need for the data cleaning phase.</p><p>Raw data</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*EOstxZ5Co3qtLCDBXPDFqA.png" /><figcaption>Raw Dataset</figcaption></figure><p><strong>Data Cleaning</strong></p><p>The cleaning phase of this analysis involved freezing of the header row for easier referencing to the columns. Next, each column was adjusted to full view. Duplications and empty spaces were checked for and corrected. Typographical and spelling check was done for different columns including the gender column -where M was used to represent ‘’Males’’ in the raw dataset-using the FIND AND REPLACE option. The locations were separated into counties and states using using the SPLIT function. Cells were also trimmed for unwanted spaces among other cleaning measures. Now our dataset is ready for exploratory analysis.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*d8HzCKg5eoQA3TmlTiAmvQ.png" /><figcaption>SPLIT of Location into County and State</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*mMjV6_uTXpBoXnXAMiO81A.png" /><figcaption>After SPLIT</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*9cMDytVJBcP1arww6EfMNw.png" /><figcaption>FIND AND REPLACE</figcaption></figure><p><strong>Analysis</strong></p><p>I made use of pivot tables and pivot charts to carry out the analysis of this dataset. But before that, the <strong>SUM</strong> and <strong>AVERAGE</strong> functions were employed to find out the total number of fatalities and average age of a mass shooter. Now back to the pivot tables and charts, different variables were explored and the following insights reached.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/325/1*NtFAEV3QawPXSpL4mahfOQ.jpeg" /><figcaption>SUM and AVERAGE</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*UwvlfoZYVlJK789yGcwUaA.jpeg" /><figcaption>Pivot table for weapons purchase</figcaption></figure><p><strong>What states have suffered most from mass shooting incidents.</strong></p><p>The data shows that although 38 states in general have had at least one incident of mass shooting in the last 40 years, <strong>California</strong>, <strong>Texas</strong> and <strong>Florida</strong> rank highest with the number of casualties and incidence.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/631/1*c-4OURlKBM97PmJPkKNJEQ.jpeg" /><figcaption>States with highest shootings</figcaption></figure><p><strong>Are these crimes somehow related to the state-specific gun laws?</strong></p><p>The answer is yes. As seen from the above analysis, the top 3 states by victims are also among the top states with minimal gun restriction laws. This is also supported by the fact that 82% of mass shooting crimes are committed with weapons gotten legally and especially in zones where they can be purchased as early as 18 years of age.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*UwvlfoZYVlJK789yGcwUaA.jpeg" /></figure><p><strong>Is there any racial preponderance and relationship to mental health in mass shootings?</strong></p><p>The analysis showed that at least 6 out 10 times, the shooter will be white. Also there is a 1 in 2 chance that the shooter has a history of mental illness before committing the crime.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/294/1*yoqFPqmcSnjW4eVPpLdv5g.jpeg" /><figcaption>Percentage distribution of shooters by race</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/318/1*PhD3C6JXM40DoLBW0Ll01w.jpeg" /><figcaption>Shooters with previous history of mental health</figcaption></figure><p><strong>What locations are the likely places for one to fall victim of mass shootings.</strong></p><p>People are more likely to be victims of mass shootings at their places of work, in schools or at religious gatherings. The retrospective analysis shows that these are the places with the highest recorded incidents of mass shootings.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/305/1*WVJeJ_OZpKK8LTEOz8QXug.jpeg" /><figcaption>Shooting locations</figcaption></figure><p><strong>What type of weapons are mass shooters likely going to use</strong></p><p>This part of the analysis was done by adding the textstrings in the weapons column to an online word cloud generator. This showed that semi-automatic weapons were the most used (specifically AR-15s), followed by hand guns. This is correlation is not far-fetched as many gun laws in states permit the purchase of such semiautomatic rifles more than other types of guns.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/187/1*a40tizJwC_CeXj6bIvYiQQ.jpeg" /><figcaption>Weapons used</figcaption></figure><p><strong>Share</strong></p><p>The entire analysis was then visualized in a single dashboard:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1003/1*wmcBL0AoV8Qm7pd6wyrKqQ.jpeg" /><figcaption>Full dashboard</figcaption></figure><p><strong>Act</strong></p><p><strong>Strategic recommendations</strong></p><p>1. <em>States with more lax gun policies have been shown to suffer the most in mass shooting incidents. Therefore, more regulations need to be put in place to make it harder for intending shooters to easily access these weapons legally. One way to do this is to increase the age for qualification.</em></p><p><em>2. Schools, Work environments and places of worship, more than other</em> <em>places, need to take more precautionary security measures in the future to prevent further occurrences of mass shootings.</em></p><p><em>3. Higher scrutiny and a more in-depth background checks are required before gun licenses can be issued to people. Especially mental health history.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=b1c61a611bd7" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>