bggj
  • blog
  • about
Category
All (7)
R (4)
bayesian (2)
big data (1)
copulas (4)
copulas in stan (3)
english (4)
ggplot (1)
hierarchical modeling (1)
phd (3)
plotly (1)
scraping (1)
spatial statistics (2)
stan (5)

It was the best of tails, it was the worst of tails: The t-Copula

Copulas in Stan: Episode III
stan
copulas
copulas in stan
The Gaussian copula’s inability to model tail dependence can be a serious limitation in practice. This post introduces the t-copula, which shares many convenient properties with the Gaussian copula while also capturing the tendency of extreme events to occur together. We’ll examine its mathematical properties, discuss when to use it instead of the Gaussian copula, and provide a complete implementation in Stan.
Dec 12, 2024
Brynjólfur Gauti Guðrúnar Jónsson

A Gentle Introduction: The Gaussian Copula

Copulas in Stan: Episode II
stan
copulas
copulas in stan
This post continues the series on copulas in Stan by introducing the Gaussian copula, discussing its properties, applications, and providing examples of how to implement it in Stan.
Sep 23, 2024
Brynjólfur Gauti Guðrúnar Jónsson

If It Bleeds, We Can Kill It

Copulas in Stan: Episode 1
stan
copulas
copulas in stan
This is the first post in what’s going to be a series on using Copulas in Stan. Each post is going to be short to keep me from postponing writing them. In this post I lightly introduce the series and give a quick primer on copulas.
Sep 15, 2024
Brynjólfur Gauti Guðrúnar Jónsson

Applying a Gaussian AR(1) Copula to Generalized Extreme Value Margins

A simulation study of the differences between AR(1) copula and i.i.d copula
english
R
phd
stan
bayesian
spatial statistics
copulas
Another step in my PhD studies is to apply multivariate copulas to data with Generalized Extreme Value marginal distributions. This is important to enable us to model dependence on the data leve, as opposed to the latent (parameter) level.
Feb 6, 2024
Brynjólfur Gauti Guðrúnar Jónsson

Spatially Dependent Generalized Extreme Value Parameters

Using Stan to fit a Generalized Extreme Value Distribution with spatially dependent parameters
english
R
phd
stan
bayesian
spatial statistics
hierarchical modeling
Note: I’m still working on this post, but I thought I might put it out there while I work on it.
Feb 6, 2024
Brynjólfur Gauti Guðrúnar Jónsson

Making interactive animations with ggplotly

Simple examples of how to use the frame aesthetic in ggplotly() for easy animations
english
R
ggplot
plotly
I’ve recently been making a lot of plotly graphs for my Icelandic website metill.is, where I look at official data on current topics. Since it is so simple to make animations with ggplotly I thought I might write a short tutorial on it.
Feb 6, 2023
Brynjólfur Gauti Guðrúnar Jónsson

Fetching FTP data from the Ceda Archives

Using R and FTP to programmatically fetch a large amount of data for processing
english
R
phd
big data
scraping
For my PhD modeling I needed to fetch a large amount of data from the CEDA Archive, specifically I use hourly precipitation projections from UKCP Local Projections on a 5km grid over the UK for 1980-2080. The hourly precipitation projections are stored in 720 files that are all approximately 120mb to 130mb. Here I write out my processing in case someone needs help with doing something similar.
Feb 3, 2023
Brynjólfur Gauti Guðrúnar Jónsson
No matching items