Articles by Eran Raviv

Most popular posts – 2023

January 2, 2024 | Eran Raviv

Welcome 2024. This blog is just a personal hobby. When I’m extra busy as I was this year the blog is a front-line casualty. This is why 2023 saw a weaker posting stream. Nonetheless I am pleased with just over 30K visits this year, with an average of roughly one minute ...
[Read more...]

Statistical Shrinkage (3)

November 18, 2023 | Eran Raviv

Imagine you’re picking from 1,000 money managers. If you test just one, there’s a 5% chance you might wrongly think they’re great. But test 10, and your error chance jumps to 40%. To keep your error rate at 5%, you need to control the “family-wise error rate.” One method is to set ... [Read more...]

Rython tips and tricks – Clipboard

August 23, 2023 | Eran Raviv

For whatever reason, clipboard functionalities from Rython are under-utilized. One utility function for reversing backslashes is found here. This post demonstrates how you can use the clipboard to circumvent saving and loading files. It’s convenient for when you just want the quick insight or visual, rather than a full-blown ... [Read more...]

Rython tips and tricks – Snippets

April 23, 2023 | Eran Raviv

R or Python? who cares! Which editor? now that’s a different story. I like Rstudio for many reasons. Outside the personal, Rstudio allows you to write both R + Python = Rython in the same script. Apart from that, the editor’s level of complexity is well-balanced, not functionality-overkill like some, ...
[Read more...]

R tips and tricks – get the gist

October 1, 2022 | Eran Raviv

In scientific programming speed is important. Functions written for general public use have a lot of control-flow checks which are not necessary if you are confident enough with your code.To quicken your code execution I suggest to strip run-of-the-mill functions to their bare bones. You can save serious wall-clock ...
[Read more...]

R Packages Download Stats

May 26, 2022 | Eran Raviv

One big advantage of using open-source tools is the fantastic ecosystems that typically accompany them. Being able to tap into a massive open-source community, by way of downloading freely available code is decidedly useful. But, yes, there are downsides to downloads. For one, there are too many packages out there. ...
[Read more...]

Most popular posts – 2021

January 4, 2022 | Eran Raviv

Kind of sad, but the same intro which served last year, befits this year also. Littered with Corona, this year was not easy. But looking around me, I feel grateful. The following quote by Socrates comes to mind: “If all our misfortunes were laid in one common heap whence everyone ...
[Read more...]

Publication in Significance – code

December 19, 2021 | Eran Raviv

Couple of months ago I published a paper in Significance – couple of pages describing the essence of deep learning algorithms, and why they are so popular. I got a few requests for the code which generated the figures in that paper. This weekend I reviewed my code and was content ...
[Read more...]

R tips and tricks – readClipboard

April 29, 2021 | Eran Raviv

Here is a small utility function to save you some boring work. Say you have a file to read into R. The file path is C:\Users\folder1\folder2\folder3\mydata.csv. So what do you do? you copy the path, paste it to the editor, and start reversing the ... [Read more...]

R + Python = Rython

July 5, 2020 | Eran Raviv

Enough! Enough with that pointless R versus Python debate. I find it almost as pointless as the Bayesian vs Frequentist “dispute”. I advocate here what I advocated there (“..don’t be a Bayesian, nor be a Frequenist, be opportunist“). Nowadays even marginally tedious computation is being sent to faster, minimum-overhead ... [Read more...]

R tips and tricks – utilities

June 16, 2020 | Eran Raviv

As the title reads, few more R-related tips and tricks. I hope you have not seen those before. Some utilities Methods are functions which are specifically written for particular class. In the post Show yourself (look “under the hood” of a function in R) we saw how to get the ...
[Read more...]

Forecast Combination talk

September 20, 2019 | Eran Raviv

Courtesy of R Consortium, you can view my forecast combination talk (16 mins) given in France few months ago, below. The slides for talk and the paper it’s based on can be found here Related posts: Forecast Combination in R – slides The useR! 2019 held in Toulouse ended couple of days... ... [Read more...]

Forecast Combination in R – slides

July 14, 2019 | Eran Raviv

The useR! 2019 held in Toulouse ended couple of days ago. I spoke of the recent R journal publication about forecast combinations (joint work with Christoph Weiss and Gernot Roetzer). Slides for the talk can be found here. Related posts: R Journal publication The R Journal is the open access, refereed ... [Read more...]

Matrix-style screensaver in R

March 31, 2019 | Eran Raviv

This post shares short code snippet to make your own screen saver in R, The Matrix-style: The code takes a few seconds to complete. [crayon-5ca12224a8f2d376309537/] Because of randomness, once you ran the code, you will never see the exact screen saver elsewhere. Enjoy. Related posts: Syntax ...
[Read more...]

R Journal publication

March 1, 2019 | Eran Raviv

The R Journal is the open access, refereed journal of the R project for statistical computing. It features short to medium length articles covering topics that should be of interest to users or developers of R. Christoph Weiss, Gernot Roetzer and myself have joined forces to write an R package ...
[Read more...]

R tips and tricks – higher-order functions

January 27, 2019 | Eran Raviv

A higher-order function is a function that takes one or more functions as arguments, and\or returns a function as its result. This can be super handy in programming when you want to tilt your code towards readability and still keep it concise. Consider the following code: [crayon-5c4dddebcccbf005402937/] ... [Read more...]

Reproducible Finance with R – book review

January 5, 2019 | Eran Raviv

Reproducible Finance with R is a clever book, with modern treatment of classical concepts. Here below is what I liked- and disliked about the book. Back when I was practicing Judo, there was a guy in my group who mastered that one exercise (called Uchi Mata). He could go fighting 20 ... [Read more...]

R tips and tricks – the assign() function

July 18, 2018 | Eran Raviv

The R language has some quirks compared to other languages. One thing which you need to constantly watch for when moving to- or from R, is that R starts its indexing at one, while almost all other languages start indexing at zero, which takes some getting used to. Another quirk ... [Read more...]

R in Finance highlights

June 26, 2018 | Eran Raviv

The yearly R in Finance conference is one of my favorites: 1. Titans of the R community are there every year. This year the founder of Rstudio (but much more really), JJ Allaire was a keynote speaker. He gave a talk about Machine Learning with TensorFlow and R. 2. Single track. I ... [Read more...]
1 2

Never miss an update!
Subscribe to R-bloggers to receive
e-mails with the latest R posts.
(You will not see this message again.)

Click here to close (This popup will not appear again)