Ancestors

Written by Nick Tierney on 2024-12-17 at 23:13

{greta.gam} is now on CRAN!

{greta.gam} is another addition to the {greta} universe, that lets you use {mgcv}’s smoother functions and formula syntax to define smooth terms for use in a {greta} model. You can then define your own likelihood to complete the model, and fit it by MCMC.

The {greta.gam} package has been around for some time, and was developed by @millerdl and Nick Golding. Thanks to Nick and David for their hard work on this!

See https://github.com/greta-dev/greta.gam for an example of how to use {greta.gam}

[#]rstats

=> View attached media

=> More informations about this toot | More toots from njtierney@aus.social

Written by Noam Ross on 2024-12-17 at 23:21

@njtierney @millerdl I never got on the greta train but this of course piques my interest. What's the pitch for why or when I would do this in greta over, say, a Stan-based approach using brms? Faster parallelization/GPU usage or big data support? More distributions to make use of?

=> More informations about this toot | More toots from noamross@ecoevo.social

Written by David Lawrence Miller on 2024-12-18 at 13:33

@noamross @njtierney some quick thoughts:

  1. it's TensorFlow under the hood, meaning that we can use not just HMC (like Stan) but also other optimizers. I guess if you have access to TPUs maybe it's faster, I don't know.

  1. no C++ nonsense

  1. extension to more complicated models is a bit easier (take yr pop dyn model, parameterise, say K in yr Ricker model using a spline), which in my (not recent) experience is somewhat painful in Stan/TMB/JAGS/Nimble.

hth :)

=> More informations about this toot | More toots from millerdl@mathstodon.xyz

Toot

Written by Nick Tierney on 2024-12-18 at 23:58

@millerdl @noamross Thanks Dave!

Yup so what Dave said about extending to more complicated models - there's dynamical systems support in greta with https://github.com/greta-dev/greta.dynamics

The TensorFlow back end also means it has nice speedups for some types of model, and scales well.

We are working on making more distributions accessible in greta (https://github.com/greta-dev/greta.distributions) - as well as thinking about making it easier for users to add and test new distributions. I haven't done a side-by-side comparison of what is in STAN and greta, but if there are any that are missing for you I'd be happy to work on adding them :)

Obviously I'm biased, but the thing that I really enjoy with greta is you get to write R code to fit and design models, and we have tried hard to provide informative error messages for the user.

There's more we are going to do with greta in 2025, one thing I'm particularly excited about is the marginalisation interface that Golding has designed.

Let me know if there's things you want to do or if I can help, Noam!

=> More informations about this toot | More toots from njtierney@aus.social

Descendants

Proxy Information
Original URL
gemini://mastogem.picasoft.net/thread/113676538740868597
Status Code
Success (20)
Meta
text/gemini
Capsule Response Time
261.982718 milliseconds
Gemini-to-HTML Time
1.635773 milliseconds

This content has been proxied by September (3851b).