epinowcast / epidist

An R package for estimating epidemiological delay distributions
http://epidist.epinowcast.org/
Other
9 stars 4 forks source link

Depend on `primarycensoreddist` in custom family `brms` functions #275

Open athowes opened 2 weeks ago

athowes commented 2 weeks ago

The initial version of primarycensoreddist was just made available. It is an R package which has the functions:

We should be able to use these functions to replace our implementations in posterior_predict_family and log_lik_family (I don't think for posterior_epred_family). This would reduce code duplication (we are just replacing the distribution basically in some of these functions, while copy pasting code currently).

seabbs commented 2 weeks ago

Agree. FYi the aim is to release primarycensoreddist to CRAN by the end of next week. We should also be able to use the stan side code for a marginalised model (and the count based version of that model as well probably more interestingly