Toots for njtierney@aus.social account

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 | View the thread

Written by Nick Tierney on 2024-11-28 at 23:27

We've now released the #rstats package, {geotargets}, version 0.2.0!

Thanks to @LeafyEricScott for making this release possible!

In this release {geotargets} can now do dynamic branching over a raster, which is quite awesome. See https://www.njtierney.com/post/2024/11/27/geotargets-0-2-0/ for more details and http://geotargets.njtierney.com/ to browse our vignettes.

We also have a new hex sticker! Thank you to Hubert Hałun for this lovely sticker!

If you are using {geotargets} and are able to share a repository where you've used it, we'd love to see it so we can share a growing page of "geotargets in the wild"

=> View attached media | View attached media

=> More informations about this toot | View the thread

Written by Nick Tierney on 2024-11-22 at 01:55

Is there a way to see which #rstats packages on CRAN are using #quarto vignettes?

=> More informations about this toot | View the thread

Written by Nick Tierney on 2024-11-13 at 02:23

I do a lot of interactive debugging in RStudio, I'm wondering if there is already a keyboard shortcut to set "debugonce" to the function that my cursor is on?

It seems like I could put something together based on @milesmcbain 's outstanding {fnmate] package: https://github.com/MilesMcBain/fnmate/blob/master/R/rstudio-addin.R#L26-L35

But just wondering if anyone has done this before or if it already exists?

[#]rstats

=> More informations about this toot | View the thread

Written by Nick Tierney on 2024-11-13 at 00:30

Super stoked to announce that {greta} version 0.5.0 is now on CRAN! Thank you to Nick Golding for making this release happen, and for his continued support, I learnt a lot!

Some features I'm really excited about:

You can read the full news below:

https://github.com/greta-dev/greta/releases/tag/v0.5.0

[#]rstats

=> More informations about this toot | View the thread

Written by Nick Tierney on 2024-11-11 at 00:19

How can Microsoft Teams be so terrible at putting code in code blocks? If sharing code between code fences, when you copy it, it copies the text and then removes literally all line breaks so when you paste the code it puts it ALL ONTO A SINGLE LINE. Am I going crazy? Is there a solution to this madness? All I want is to share plain text files.

=> More informations about this toot | View the thread

Written by Nick Tierney on 2024-10-08 at 01:13

Is there an accepted best pattern for repeatedly running code until some timeout is reached?This is the pattern that we use at the moment, but putting conditions inside the while loop feels like there might be a way to put this into some kind of object that can be more easily inspected? Here's some code that we use at the moment

while (not_finished(draws, n_effective) &
       not_timed_out(start_time, time_limit)) {
  n_samples <- new_samples(draws, n_effective)
  draws <- extra_samples(
    draws,
    n_samples,
    verbose = verbose,
    one_by_one = one_by_one
  )
}

[#]rstats #rse #researchsoftwareengineering #pkgdev

=> More informations about this toot | View the thread

Written by Nick Tierney on 2024-08-21 at 23:38

For the especially keen, if you'd like to try out our new installation process for managing python dependencies, here are some instructions:

Install greta from the R universe with

install.packages("greta", repos = c("https://greta-dev.r-universe.dev", "https://cloud.r-project.org"))

And then try

library(greta)
install_greta_deps()

And follow the prompts for installation.

If all goes well, it should ask you to restart R, after which, you should be able to run

library(greta) # it should do this
greta_sitrep()

And it should give you some successful green ticks

=> More informations about this toot | View the thread

Written by Nick Tierney on 2024-08-21 at 23:32

Hi folks!

I'm really excited to say that the #rstats package {greta} 0.5.0 is approaching release!

{greta} is a simple and scalable statistical modelling in R. You can think of it like writing BUGS/STAN code but using R and not a separate language. It uses Google Tensorflow under the hood, which means it scales well to large data and models.

The main feature of this new release is that we are using Tensorflow 2.0 (TF2) under the hood. This was a pretty big update of the internals, and it wouldn't have been possible without the guidance and direction of Nick Golding, the creator of {greta}. Thanks, Nick!

Outside of the upgrade to TF2, here is a summary of the changes we have made in this release

For more detail on the changes made in this release, see the NEWS file: https://github.com/greta-dev/greta/blob/master/NEWS.md

If people have time we'd love to get your feedback on trying out the new greta, the easiest way to install it is via the r-universe, with:

install.packages("greta", repos = c("https://greta-dev.r-universe.dev", "https://cloud.r-project.org"))

I am aiming to submit this to CRAN within the next week, ideally by Wednesday 28th August - let me know if you have any feedback or issues with installation and use!

(Also wow, I can write really posts messages on Mastodon)

[#]rstats #bayesian

=> More informations about this toot | View the thread

=> This profile without reblog | Go to njtierney@aus.social account

Proxy Information
Original URL
gemini://mastogem.picasoft.net/profile/109499235705441932/reblog
Status Code
Success (20)
Meta
text/gemini
Capsule Response Time
299.870037 milliseconds
Gemini-to-HTML Time
6.768027 milliseconds

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