sempwn / cr0eso Goto Github PK
View Code? Open in Web Editor NEWBayesian SEIR model fitting to multiple facility outbreaks
Home Page: https://sempwn.github.io/cr0eso/index.html
License: MIT License
Bayesian SEIR model fitting to multiple facility outbreaks
Home Page: https://sempwn.github.io/cr0eso/index.html
License: MIT License
Would be better to import ...
as a function parameter that can be passed into rstan::sampling
Error: Problem with `mutate()` input `location`.
x could not find function "str_remove_all"
i Input `location` is `str_remove_all(location, "V")`.
`mutate()` input `rincidence`.
x could not find function "n"
i Input `rincidence` is `rpois(n(), incidence)`.
For more flexible modeling, would be useful to include a covariate matrix for locations and predictors that can be used to explain variance of R0 for each location.
For example, we may have difference facility types we would want to use to adjust R0 estimates, or type of ventilation, age of building, density etc.
Error: Aesthetics must be either length 1 or the same as the data (22800): y
seir_model_fit
runs add in some basic data checks like whether there are missing values (there shouldn't be).Add ability to change priors within model
Stan code should get updated so that it generates posterior predictive distribution for cases, as well as for the counterfactual where there is no intervention.
With these generated posteriors, can then use the tidybayes package to extract and plot. This can also help to tidy up the hom_plot_incidence_by_location()
function.
Error: Problem with `mutate()` input `location`.
x could not find function "str_remove_all"
i Input `location` is `str_remove_all(location, "V")`.
Create function to use rstan fit object and run a counterfactual scenario for each location where no intervention takes place.
Output should be a class with a print and plot function and provide outputs in tidy format.
Follow guidlines here: https://r-pkgs.org/data.html
See no visible global function definition
warnings on R CMD check.
Also, I wouldn't import the tidyverse, just the specific packages you need.
Don't forget the stats imports: "quantile", "rpois"
Example currently referencing an uninstantiated object. Easy fix would be to save a model fit and use that to generate posterior plots
Create function that has a list of model outputs as a list and returns a table of marginal posterior medians and 95% CrI for R0, zeta, and critical time
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.