jrfaulkner / spmrf

R package for Bayesian nonparametric adaptive smoothing with Stan
GNU Lesser General Public License v3.0
8 stars 4 forks source link

Exponential likelihood for point process models? #8

Open sdwfrost opened 3 years ago

sdwfrost commented 3 years ago

Hi @jrfaulkner

Would it be possible to add an exponential likelihood to spmrf? I'd like to try fitting point process models (e.g. Poisson process with varying intensity), and as you already have coalescent likelihoods in the package, this may be an easy addition (or there may be a quick hack) - is it as straightforward as defining a fine grid and using the Poisson likelihood? Thanks!

jrfaulkner commented 3 years ago

Hello @sdwfrost - we already have a Poisson likelihood option in spmrf. Just use the argument likelihood="poisson" in the spmrf function call. Check out our vignette for the Coal Mining Example for more info. Let me know if that doesn't get you what you were looking for.