Publications by Bluecology blog
How to get your LLM model to run and interpret R code
How to get your LLM model to run and interpret R code Tools let AI models run code and access other applications. This can be a tool on your computer (like an R function), or access and API. By creating tools you can give your LLM access to databases online (via their APIs) or let them run code on your computer, interpret the output and use it in t...
5767 sym R (1954 sym/7 pcs)
The ellmer package for using LLMs with R is a game changer for scientists
The ellmer package for using LLMs with R is a game changer for scientists Why is ellmer a game changer for scientists? In this tutorial we’ll look at how we can access LLM agents through API calls. We’ll use this skill for created structued data from documents. We’ll use the R ellmer package (launched 25th Feb 2025). There are a few package ...
9530 sym R (3164 sym/15 pcs)
The ellmer package for using LLMs with R is a game changer for scientists
The ellmer package for using LLMs with R is a game changer for scientists Why is ellmer a game changer for scientists? In this tutorial we’ll look at how we can access LLM agents through API calls. We’ll use this skill for created structued data from documents. We’ll use the R ellmer package (launched 25th Feb 2025). There are a few package ...
9530 sym R (3164 sym/15 pcs)
How to use large language models to assist in systematic literature reviews
How to use large language models to assist in systematic literature reviews In the near future, we will all be doing systematic lit reviews by getting LLMs to gather data from papers. Below is an example of how to extract text data from a study. Once you can interact with LLM from R, you can then batch process many documents to turn text into struc...
12090 sym R (2631 sym/16 pcs)
Probability intervals with GAMs
Probability intervals with GAMs A neat trick with GAMs (generalized additive models) fit using the mgcv package is that you can use simulation to get Bayesian credible intervals. This is handy because it means you can easily calculate probabilities for any arbitrary transformation of your parameters. For instance, we used this trick to calculate th...
5310 sym R (1593 sym/6 pcs) 8 img
Introduction to structural causal modelling
Introduction to structural causal modelling A primary goal of science is to understand causes. Structural causal modelling is a framework for developing causal hypotheses to test with data. I taught a workshop at the Australian Marine Sciences Association conferences in 2023. I’ve now provided all the course notes online for free. One if the adva...
1465 sym
Bayesian structural equation model tutorial
Bayesian structural equation model tutorial Structural equation modelling (SEM) is a tool for exploring relationships among multiple variables. lavaan and piecewiseSEM are too of the most widely used and accessible packages for latent variable modelling in R. Both use frequentist methods. It is also possible to develop SEMs in a Bayesian framework....
11299 sym R (3257 sym/21 pcs) 14 img
Why GLMs should be a priority when teaching statistics
Why GLMs should be a priority when teaching statistics There is often debate over the best place to start when teaching students inferential statistics. The teaching of statistics should start with basic understanding of what data are, probability and data visualisation. Beyond that students usually start to learn about inferential methods. The deb...
5940 sym 2 img
Making predictions from GAMs in R explained by an 18th century author
Making predictions from GAMs in R explained by an 18th century author As explained by ChatGPT with some minor edits by me. This post is an example for my post “Tips for using chatGPT to learn R” Pray, let us first summon the mgcv package, that we may avail ourselves of its functions in our quest to fashion a GAM. Hark! Let us summon the ‘mgcv...
1670 sym R (806 sym/6 pcs)
Tips for using chatGPT to learn R
Tips for using chatGPT to learn R ChatGPT can help you learn R code. Here are some tips my team and I have worked out for ways to use the model to help with learning R. There is also an askgpt package now that is meant to integrate ChatGPT directly into RStudio. However, I’ve been unable to get this package to work on my laptop. Ask GPT to explai...
7620 sym R (276 sym/1 pcs)