Hello, dear friend, you can consult us at any time if you have any questions, add WeChat: daixieit

STAT 440 Statistical Data Management - Spring 2022

Homework05

#1 This problem includes concepts from the following notes/videos: Markdown.

Problem: Using Markdown syntax, make a numbered list with your netID in normal text as the first item and full name in normal text as the second item.

Answer:

#2 This problem includes concepts from the following notes/videos: Markdown.

Problem: Think about the previous two weeks (your experiences, assignments, and life). Using Markdown, describe in paragraph form  (with at least 3 complete sentences):  what was the most challenging part(s) about those weeks, and the thing(s) that made your weeks successful or unsuccessful.

Answer:

#3 This problem includes concepts from the following notes/videos: Markdown.

Problem:  Think about the entire semester (your experiences, assignments, and life).  Using Markdown, describe in paragraph form  (with at least 3 complete sentences):  what was the most challenging part(s) about this semester, and the thing(s) that made your semester successful or unsuccessful.

Answer:

#4 This problem includes concepts from the following notes/videos:  Data visualization using Tidyverse, Markdown.

Problem: If the statement below is TRUE, then write TRUE in the Answer section and provide evidence (code and results) that it is TRUE. If the statement below is FALSE, then write FALSE in the Answer section and provide evidence (code and results) that it is FALSE.

•  Statement:  When immediately following the ggplot() function, the %>% sign (aka pipe sign) allows for additional layering of tidyverse data visualization elements.

Answer:

#5 This problem includes concepts from the following notes/videos:  Accessing and importing data, Ar- ranging data,  Data reduction,  Data expansion, Loops and conditional execution, Vectorization,  Regular expressions and string manipulation,  Summarizing data,  Combining data,  SQL for weeks 03-07 content, SQL sub-queries, Tool-making and programming Part01.

Problem:  Edward Parker of The Vaccine Centre, London School of Hygiene & Tropical Medicine and Quentin Leclerc,  Department of Infectious Disease Epidemiology,  London School of Hygiene & Tropical

Medicine  have  created  a  Shiny  app  called  COVID-19  tracker .   Beginning with the  code  in their  R  file

called _       _          _cases.Rjhudataweekly, you are tasked with changing their update_jhu() function such that the lines of code are now utilizing tidyverse methods and code. Specifically, the lines 13-42 of their code can be improved based on data management concepts covered in this course.  This problem requires you to make improvements to at least 15 lines of the total 30 lines of code in their update_jhu() function.   SQL  is allowed.

Answer:

#6 This problem includes concepts from the following notes/videos:  Accessing and importing data, Ar- ranging data,  Data reduction,  Data expansion, Loops and conditional execution, Vectorization,  Regular

expressions and string manipulation,  Summarizing data,  Combining data,  SQL for weeks 03-07 content, SQL sub-queries, Tool-making and programming Part01.

Problem:  Edward Parker of The Vaccine Centre, London School of Hygiene & Tropical Medicine and Quentin Leclerc,  Department of Infectious Disease Epidemiology,  London School of Hygiene & Tropical

Medicine  have  created  a  Shiny  app  called  COVID-19  tracker .   Beginning with the  code  in their  R  file

called _       _          _cases.Rjhudataweekly, you are tasked with changing the for loop spanning lines 81-139 such that the lines of code are now utilizing tidyverse methods and code.  Specifically, the lines 81-139 of their code can be improved based on data management concepts covered in this course. This problem requires you to make improvements to at least 30 lines of the total 59 lines of code in their for loop. SQL is allowed.

Answer:

#7 This problem includes concepts from the following notes/videos:  Accessing and importing data, Ar- ranging data,  Data reduction,  Data expansion, Loops and conditional execution, Vectorization,  Regular expressions and string manipulation,  Summarizing data,  Combining data,  SQL for weeks 03-07 content, SQL sub-queries, Tool-making and programming Part01.

Problem:  Edward Parker of The Vaccine Centre, London School of Hygiene & Tropical Medicine and Quentin Leclerc,  Department of Infectious Disease Epidemiology,  London School of Hygiene & Tropical Medicine have created a Shiny app called COVID-19 tracker. Beginning with the code in their R file called app.R, you are tasked with changing the “### DATA PROCESSING: COVID-19 ###” section (spanning lines 216-359) such that the lines of code are now utilizing tidyverse methods and code.  Specifically, the lines 216-359 of their code can be improved based on data management concepts covered in this course. This problem requires you to make improvements to at least 72 lines of the total 144 lines of code in this section of code. SQL is allowed.

Answer:

#8 This problem includes concepts from the following notes/videos:  Accessing and importing data, Ar- ranging data,  Data reduction,  Data expansion, Loops and conditional execution, Vectorization,  Regular expressions and string manipulation,  Summarizing data,  Combining data,  SQL for weeks 03-07 content, SQL sub-queries, Tool-making and programming Part01, Data visualization using base R, Data visualiza- tion using Tidyverse.

Problem:  Edward Parker of The Vaccine Centre, London School of Hygiene & Tropical Medicine and Quentin Leclerc,  Department of Infectious Disease Epidemiology,  London School of Hygiene & Tropical

Medicine have created a Shiny app called COVID-19 tracker .  Beginning with the code in their R file called

app.R, you are tasked with changing the  “# function to plot new cases by regionsection  (spanning lines

106-134) such that the lines of code and their resulting data visualizations are now improved.  Specifically, the lines 106-134 of their code can be improved based on data management concepts covered in this course including data visualization concepts of macro and micro elements.   This problem requires you to make

improvements to at least 14 lines of the total 28 lines of code in this section of code.  SQL is allowed. Answer:

#9 This problem includes concepts from the following notes/videos: Data visualization using base R, Data visualization using Tidyverse, Shiny apps and dashboards.

Problem:  Edward Parker of The Vaccine Centre, London School of Hygiene & Tropical Medicine and Quentin Leclerc,  Department of Infectious Disease Epidemiology,  London School of Hygiene & Tropical

Medicine  have  created  a  Shiny  app  called  COVID-19  tracker .   Beginning with the  code  in their  R  file

called app.R, you are tasked with changing the “### SHINY UI ###” section (spanning lines 466-668) such that the lines of code are now improved visually for the user interface.  Specifically, the lines 466-668

of their code can be improved based on data management concepts covered in this course.  This problem requires you to make improvements to the Shiny user interface section.

Answer:

#10 This problem includes concepts from the following notes/videos:  Accessing and importing data, Ar- ranging data,  Data reduction,  Data expansion, Loops and conditional execution, Vectorization,  Regular

expressions and string manipulation,  Summarizing data,  Combining data,  SQL for weeks 03-07 content, SQL sub-queries, Tool-making and programming Part01, Data visualization using base R, Data visualiza- tion using Tidyverse, Markdown.

Problem:  Edward Parker of The Vaccine Centre, London School of Hygiene & Tropical Medicine and Quentin Leclerc,  Department of Infectious Disease Epidemiology,  London School of Hygiene & Tropical Medicine have created a Shiny app called COVID-19 tracker. Beginning with the code that you changed in both R files called _       _          _cases.Rjhudataweekly and app.R, you are tasked with adding comments explaining the code that you changed. Your comments need not explain why you changed the code. But your comments should explain to the user what the new code does.

Answer: