coronavirus's People
coronavirus's Issues
normalize case load to population for mobility dat...
normalize case load to population for mobility data
https://github.com/sbs87/coronavirus/blob/07b841d6f422d178a72a1041b96acf0d397468c7/Corona_Prediction.html#L1486
Add population data for non US cities/regions
Add population data for non US cities/regions
coronavirus/Corona_Prediction.Rmd
Line 287 in 206dd8e
##------------------------------------------
## Add population and lat/long data (CURRENTLY US ONLY)
##------------------------------------------
# TODO Add population data for non US cities/regions
kable(filter(metadata,(is.na(Country.Region) | is.na(Population) )) %>% select(c("Country.Region","Province.State","City")) %>% unique(),caption = "Regions for which either population or Country is NA")
# Drop missing data
metadata<-filter(metadata,!(is.na(Country.Region) | is.na(Population) ))
# Convert remaining pop to numeric
metadata$Population<-as.numeric(metadata$Population)
# Add metadata to cases
Corona_Cases<-merge(Corona_Cases,metadata,all.x = T)
##------------------------------------------
## Compute total and death cases relative to population
##------------------------------------------
Corona_Cases$Total_confirmed_cases.per100<-100*Corona_Cases$Total_confirmed_cases/Corona_Cases$Population
Corona_Cases$Total_confirmed_deaths.per100<-100*Corona_Cases$Total_confirmed_deaths/Corona_Cases$Population
##------------------------------------------
## Filter df for US state-wide stats
##------------------------------------------
Corona_Cases.US_state<-filter(Corona_Cases,Country.Region=="US_state" & Total_confirmed_cases>0 )
kable(table(select(Corona_Cases.US_state,c("Province.State"))),caption = "Number of longitudinal datapoints (total/death) per state")
Corona_Cases.US_state<-merge(Corona_Cases.US_state,ddply(filter(Corona_Cases.US_state,Total_confirmed_cases>100),c("Province.State"),summarise,case100_date_state=min(Date.numeric)))
Corona_Cases.US_state$Days_since_100_state<-Corona_Cases.US_state$Date.numeric-Corona_Cases.US_state$case100_date_state
ANALYSIS
Add city-level data or analysis
Subset US state data further for city-level analysis. may be sparse
secondary question: rank greatest to least mobilit...
secondary question: rank greatest to least mobility
https://github.com/sbs87/coronavirus/blob/fd668c6b557295538086d1b2bb91abc31d799acb/Corona_Prediction.html#L1873
convert % to numeric in mobility data
convert % to numeric in mobility data
https://github.com/sbs87/coronavirus/blob/07b841d6f422d178a72a1041b96acf0d397468c7/Corona_Prediction.html#L1483
Incorporate social distancing metrics
A question about the association with social distancing on case load.
A good resource is:
https://covid19.healthdata.org/projections
Also, associating with "mobility data"
https://www.google.com/covid19/mobility/
Question: what is the effect of social distancing on case load or deaths?
Driven by availability of data
automate get_mobility.py script so most recent dat...
automate get_mobility.py script so most recent data is availble
https://github.com/sbs87/coronavirus/blob/fd668c6b557295538086d1b2bb91abc31d799acb/Corona_Prediction.html#L1487
secondary question: rank greatest to least mobilit...
secondary question: rank greatest to least mobility
coronavirus/Corona_Prediction.Rmd
Line 688 in fd668c6
Add predictions
Add death rate data
- Need to add death rate data to plots and how it tracks with total cases.
- Need to add prediction similar to total cases
standardize headers in mobility data
standardize headers in mobility data
coronavirus/Corona_Prediction.Rmd
Line 640 in 07b841d
automate way of downloading new data
hook or something to auto check for new data? not sure if possible or worth it
standardize headers in mobility data}
standardize headers in mobility data}
coronavirus/Corona_Prediction.tex
Line 1733 in fd668c6
standardize headers in mobility data
standardize headers in mobility data
https://github.com/sbs87/coronavirus/blob/07b841d6f422d178a72a1041b96acf0d397468c7/Corona_Prediction.html#L1484
standardize counties in mobility data to JHU sourc...
standardize counties in mobility data to JHU source
coronavirus/Corona_Prediction.Rmd
Line 641 in 07b841d
Can you also show PA data: PA appears to show a dramatic drop in cases over the past two days...from 2000 to 1100
Daily notation
I can't tell if you have updated the graph day to day because I can't tell what the last day is on the chart. If you could put the day notation at the bottom of the graph that might be helpful.
automate get_mobility.py script so most recent dat...
automate get_mobility.py script so most recent data is availble }
coronavirus/Corona_Prediction.tex
Line 1736 in fd668c6
convert % to numeric in mobility data}
convert % to numeric in mobility data}
coronavirus/Corona_Prediction.tex
Line 1732 in fd668c6
secondary question: rank greatest to least mobilit...
secondary question: rank greatest to least mobility}
coronavirus/Corona_Prediction.tex
Line 2178 in fd668c6
normalize case load to population for mobility dat...
normalize case load to population for mobility data}
coronavirus/Corona_Prediction.tex
Line 1735 in fd668c6
add geographical plots
convert % to numeric in mobility data
convert % to numeric in mobility data
coronavirus/Corona_Prediction.Rmd
Line 639 in 07b841d
test todo functionality
test todo functionality
Line 1 in 655e2b7
Show cases relative to population
mkdir if one doesn't exits
Create function in R template for project space, including results, output dirs, etc
test todo in R script
test todo in R script
coronavirus/Corona_Prediction.Rmd
Line 663 in 78f673e
standardize counties in mobility data to JHU sourc...
standardize counties in mobility data to JHU source
https://github.com/sbs87/coronavirus/blob/07b841d6f422d178a72a1041b96acf0d397468c7/Corona_Prediction.html#L1485
automate get_mobility.py script so most recent dat...
automate get_mobility.py script so most recent data is availble
coronavirus/Corona_Prediction.Rmd
Line 643 in 07b841d
Add population data for non US cities/regions
Add population data for non US cities/regions
##------------------------------------------
## Add population and lat/long data (CURRENTLY US ONLY)
##------------------------------------------
# TODO Add population data for non US cities/regions
kable(filter(metadata,(is.na(Country.Region) | is.na(Population) )) %>% select(c("Country.Region","Province.State","City")) %>% unique(),caption = "Regions for which either population or Country is NA")</code></pre>
<table>
<caption>Regions for which either population or Country is NA</caption>
<thead>
<tr class="header">
<th align="left">Country.Region</th>
<th align="left">Province.State</th>
<th align="left">City</th>
</tr>
</thead>
<tbody>
</tbody>
</table>
<pre class="r"><code># Drop missing data
metadata<-filter(metadata,!(is.na(Country.Region) | is.na(Population) ))
# Convert remaining pop to numeric
metadata$Population<-as.numeric(metadata$Population)</code></pre>
<pre><code>## Warning: NAs introduced by coercion</code></pre>
<pre class="r"><code># Add metadata to cases
Corona_Cases<-merge(Corona_Cases,metadata,all.x = T)
##------------------------------------------
## Compute total and death cases relative to population
##------------------------------------------
Corona_Cases$Total_confirmed_cases.per100<-100*Corona_Cases$Total_confirmed_cases/Corona_Cases$Population
Corona_Cases$Total_confirmed_deaths.per100<-100*Corona_Cases$Total_confirmed_deaths/Corona_Cases$Population
##------------------------------------------
## Filter df for US state-wide stats
##------------------------------------------
Corona_Cases.US_state<-filter(Corona_Cases,Country.Region=="US_state" & Total_confirmed_cases>0 )
kable(table(select(Corona_Cases.US_state,c("Province.State"))),caption = "Number of longitudinal datapoints (total/death) per state")</code></pre>
<table>
standardize counties in mobility data to JHU sourc...
standardize counties in mobility data to JHU source}
coronavirus/Corona_Prediction.tex
Line 1734 in fd668c6
*
coronavirus/Corona_Prediction.tex
Line 2222 in fd668c6
* mkdir the results dir if it doesn’t exist * make...
- mkdir the results dir if it doesn’t exist * make ggplot a dependency for plot.utils?
https://github.com/sbs87/coronavirus/blob/1b7be20b860729bffeaaead073ee7d61e3835714/Corona_Prediction.html#L4568
normalize case load to population for mobility dat...
normalize case load to population for mobility data
coronavirus/Corona_Prediction.Rmd
Line 642 in 07b841d
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.