DOI-USGS / DOI-USGS/streamMetabolizer

optimize MLE

Open
#220 2 comments 0 reactions 0 assignees View on GitHub
enhancement
Dominant language
Stan
Stars
47
Forks
25
PR merge metrics
No merged PRs in 30d

Description

MLE models are much slower now than they could be with faster R implementation or, maybe better, Rcpp. There's also some funkiness with `nlm`+`ode`+`lsoda` that might possibly be solved with `optim` or `nlminb` (haven't tried)
- [ ] if i'm going to optimize for time, i should probably start tracking runtime now
- [ ] implement core loops in Rcpp a la https://github.com/GLEON/LakeMetabolizer/blob/master/src/mleLoop.c and http://adv-r.had.co.nz/Rcpp.html
- [ ] consider nlminb (with constraints?) rather than nlm? http://stats.stackexchange.com/questions/9535/when-should-i-not-use-rs-nlm-function-for-mle, http://stackoverflow.com/questions/3757321/moving-beyond-rs-optim-function

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.