ghurault / huraultmisc Goto Github PK
View Code? Open in Web Editor NEWPersonal R package
Home Page: https://ghurault.github.io/HuraultMisc/
License: Other
Personal R package
Home Page: https://ghurault.github.io/HuraultMisc/
License: Other
Some Stan-related function in the package achieve similar outcomes as function in tidybayes.
Maybe mark them as obsolete or mention the difference in the doc?
extract_parameters_from_draw(fit, param, draw)
roughly equivalent to fit %>% tidy_draws() %>% gather_variables() %>% filter(.draw == draw & .variable %in% param)
, but the tidybayes version is a bit inefficient as all draws and all parameters are extracted then filtered (also the draw IDs are not exactly the same).
spread_draws
would probably be more efficient when only a handful of parameters are extracted (but can only specify which draw afterwards, or select the number of draws that are extracted).
Slightly equivalent to fit %>% tidy_draws() %>% gather_variables %>% mean_qi()
, although we don't have information about R_hat or n_eff and indexes are not processed.
spread_draws
with mean_qi
(or equivalent) would be more useful to summarise the distribution of a handful of parameters.
Could use stat_lineribbon in tidybayes
In order to test stan functions, we need to manipulate a stanfit object.
To do this rapidly, simple solutions include:
However, these files are too big (around 5MB) triggering a CRAN note.
It would be nice to find a way around this.
A potential solution could be to compile the models during the build as described here.
Or use a package using pre-compiled Stan models, like rstanarm (include the package as Suggests).
cf. redundant code
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.