Conversation
|
The R-CMD-checks fail, because the most recent STAN version is not available here on GitHub. For the 7-parameter wiener likelihood STAN 2.35 or newer is required. Given the feasibility issues with running the 7par version, we could also consider not exposing it. Maybe, we can have a chat about that. |
|
Judging by the error message it is because the check on github is using rstan as the backend, and rstan is at least a year behind in shipping the STAN headers. This also means that it will fail on CRAN as well. There are two options:
stopif(
!requireNamespace("tidyr", quietly = TRUE),
'The "tidyr" package is required for this functionality'
)It's allowed on CRAN to have functions that depend on Suggested packages, but you have to check if they are available. In this case you would check if "cmdstanr" is available and whether the backend is specified as "cmdstanr". The latter is done by default if the package is installed, but users could in principle explicitely override it and request "rstan", in which case you would intentionally give an error message. |
|
I have tried a few things to resolve the failing checks. So far none of them worked... Maybe the I will check this and get back to you, once I found a solution. The alternative is to scrap the 7par version completely and basically provide a wrapper around the brms implementation. |
|
After some consideration I decided to remove the |
|
I have decided to evaluate what it would take to implement the mixture between uniform and model likelihood for the rt models directly in STAN for the But it seems, that there is more to it, then just adding the mixture in the STAN likelihood. For now, there are some convergence issues. Thus, I switched this pull request to a draft. |
36cb5b5 to
3bfa306
Compare
|
The implementation of the mixture of uniform and I would prefer looking into this for a later release and for now keep the pre-processing with using ML mixtures implemented for #309 as a tool for identifying potential outlier RTs. This is something that work well already and provides an acceptable workflow from my perspective. So, I re-open this pull request with the |
Summary
ddmbased on the likelihood provided by STAN.create_initfunthe user no longer needs to worry about writing their own initial value function.7parversion uses a new likelihood function for STAN, but runs very slow. There is some documentation on this in the vignettebrms.Tests
[x] Confirm that all tests passed
[x] Confirm that devtools::check() produces no errors
Release notes