Using Stan from R

December 25, 2024 | Chris Bowdon

I’ve been trying to get the hang of Bayesian models with Stan. One of the hurdles has been using Stan from R, so in this post I’m jotting down what I’ve learned (mostly the hard way). RStan or CmdStanR? On the whole I had a much better ... [Read more...]

Impact of Trump’s Win on Financial ETFs

December 24, 2024 | Selcuk Disci

Donald Trump’s recent election win has sparked a rapid surge in sectors like Financials. Barclays calls this a clear reflection of the “Trump playbook,” trends seen in 2016. According to this, the iShares Global Financials ETF seems to have room to continue the uptrend. Source code: [Read more...]

Calling C++ functions from R using Rcpp

December 23, 2024 | Adam Gladstone

Introduction If you are an R/RStudio user and you are learning C/C++ then this blog post may be interesting. Suppose that you’ve written a function in C/C++ (or even a whole program). You know how to run your code from the command line, passing in argu...
[Read more...]

Calling C++ functions from R using Rcpp

December 23, 2024 | Adam Gladstone

If you are an R/RStudio user and you are learning C/C++ then this blog post may be interesting. Suppose that you've written a function in C/C++ (or even a whole program). You know how to run your code from the command line, passing in arguments and so ...
[Read more...]

Importance Sampling

December 22, 2024 | Chris Bowdon

The aim of this post is to teach myself basic Bayesian methods. I’ll set up a toy example problem and solve it. Let’s assume we have a natural event that happens with a variable periodicity e.g. a woman’s menstrual cycle. I’m drawing from t...
[Read more...]

Fish-Eye Lens Effect with ggplot2

December 22, 2024 | Chisato

Fascination with “Warping” … The “fish-eye” lens has always fascinated me. It was my gateway into photography—its quirky, distorted charm never failed to add whimsy to my shots. Some of my favourite memories are capturing our furry friends🐶🐽🐄. ...
[Read more...]

Introducing the {pipeflow} package

December 21, 2024 | R some blog

Efficiently managing complex data analysis workflows can be a challenge. In standard R programming, chaining functions, tracking intermediate results, and maintaining dependencies between steps often lead to cluttered code that is difficult to scale or... [Read more...]

Version 1.3.0 of NIMBLE released

December 21, 2024 | Chris Paciorek

We’ve released the newest version of NIMBLE on CRAN and on our website. NIMBLE is a system for building and sharing analysis methods for statistical models, especially for hierarchical models and computationally-intensive methods (such as MCMC, Laplace approximation, and SMC). Version 1.3.0 provides some new and improved functionality, plus some ...
[Read more...]

Creating a Seigaha Motif with ggplot2

December 21, 2024 | Chisato

Seigaiha 青海波 🌊 The Seigaiha (青海波) motif, literally translated as “blue ocean waves” is a classic Japanese pattern used in textiles, ceramics, kimono and art. It features stylized waves created with concentric circles forming arches. I just learned that it symbolizes surges of good luck - delightful and thought great start to have ...
[Read more...]
1 23 24 25 26 27 2,184