mcol / hsstan Goto Github PK
View Code? Open in Web Editor NEWAn R package for biomarker discovery using Bayesian models implemented in Stan
License: GNU General Public License v3.0
An R package for biomarker discovery using Bayesian models implemented in Stan
License: GNU General Public License v3.0
Hi
We recently released ggplot2 3.4.0 and while we didn’t detect issues with hsstan during our tests, CRAN has seen issues after release. This mail is to notify you about this and offer help if there are any issues you have trouble fixing
Kind regards
Thomas Lin Pedersen, ggplot2 maintainer
I've looked into the specification of the horseshoe prior in the stan file "hs.stan". It seemed that you used a student t prior on tau and lambda as follows:
lambda ~ student_t(nu, 0, 1); tau ~ student_t(global_df, 0, global_scale * sigma)
But from my current knowledge, the horseshoe prior on lambda and tau should be half cauchy instead of student t distribution. Can you clarify why the horseshoe prior are specified in the student t distribution in the hsstan package? Also, why the tau should be conditioned on the sigma?
* checking compiled code ... OK
* checking examples ... ERROR
Running examples in ‘hsstan-Ex.R’ failed
The error most likely occurred in:
> ### Name: bayes_R2.hsstan
> ### Title: Bayesian and LOO-adjusted R-squared
> ### Aliases: bayes_R2.hsstan bayes_R2 loo_R2.hsstan loo_R2
>
> ### ** Examples
>
> ## Don't show:
> utils::example("hsstan", echo=FALSE)
SAMPLING FOR MODEL 'hs' NOW (CHAIN 1).
SAMPLING FOR MODEL 'hs' NOW (CHAIN 2).
Warning in mccollect(jobs) : 2 parallel jobs did not deliver results
Error in FUN(X[[i]], ...) :
trying to get slot "mode" from an object of a basic class ("NULL") with no slots
Calls: <Anonymous> ... <Anonymous> -> <Anonymous> -> .local -> sapply -> lapply -> FUN
Execution halted
Detailed output:
hsstan 0.8.1: using 4 cores, set 'options(mc.cores)' to change.
>
> base::assign(".oldSearch", base::search(), pos = 'CheckExEnv')
> base::assign(".old_wd", base::getwd(), pos = 'CheckExEnv')
> cleanEx()
> nameEx("bayes_R2.hsstan")
> ### * bayes_R2.hsstan
>
> flush(stderr()); flush(stdout())
>
> ### Name: bayes_R2.hsstan
> ### Title: Bayesian and LOO-adjusted R-squared
> ### Aliases: bayes_R2.hsstan bayes_R2 loo_R2.hsstan loo_R2
>
> ### ** Examples
>
> ## Don't show:
> utils::example("hsstan", echo=FALSE)
SAMPLING FOR MODEL 'hs' NOW (CHAIN 1).
SAMPLING FOR MODEL 'hs' NOW (CHAIN 2).
Warning in mccollect(jobs) : 2 parallel jobs did not deliver results
Error in FUN(X[[i]], ...) :
trying to get slot "mode" from an object of a basic class ("NULL") with no slots
Calls: <Anonymous> ... <Anonymous> -> <Anonymous> -> .local -> sapply -> lapply -> FUN
Execution halted
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.