Blog Archives

Automated testing with ‘testthat’ in practice

November 25, 2019
By
Automated testing with ‘testthat’ in practice

by Virginia Peón García You test your code. We know you do. How else are you sure that your changes don’t break the program? But after you commit, you discard those pesky scripts and throw away code. Don’t you think it’s a bit of a waste to dump all that effort that took you...

Read more »

Spatial Data Analysis with INLA

November 4, 2019
By
Spatial Data Analysis with INLA

by Virgilio Gómez Rubio Introduction In this session I will focus on Bayesian inference using the integrated nested Laplace approximation (INLA) method. As described in Rue et al. (2009), INLA can be used to estimate the posterior marginal distribution of Bayesian hierarchical models. This method is implemented in the INLA package available for the R programming language....

Read more »

Strange Attractors: an R experiment about maths, recursivity and creative coding

October 14, 2019
By
Strange Attractors: an R experiment about maths, recursivity and creative coding

by Antonio Sánchez Learning to code can be quite hard. Apart from the difficulties of learning a new language, following a book can be quite boring. From my point of view, one of the bests ways to become a good programmer is choosing small and funny experiments oriented to train specific techniques...

Read more »

Mastering R presentations

September 23, 2019
By
Mastering R presentations

by Paula LC Do you want to know how to make elegant and simple reproducible presentations? In this talk, we are going to explain how to do presentations in different output formats using one of the easiest and most exhaustive statistical software, R. Now, it is possible create Beamer, PowerPoint, or HTML...

Read more »

Getting from flat data a world of relationships to visualise with Gephi

June 17, 2019
By
Getting from flat data a world of relationships to visualise with Gephi

by Mariluz Congosto Network analysis offers a perspective of the data that broadens and enriches any investigation. Many times we deal with data in which the elements are related, but we have them in a tabulated format that is difficult to import into network analysis tools. Relationship data require a definition of nodes...

Read more »

Simple yet elegant Object-Oriented programming in R with S3

May 27, 2019
By

by Iñaki Úcar The R language is peculiar in many ways, and its approach to object-oriented (OO) programming is just one of them. Indeed, base R supports not one, but three different OO systems: S3, S4 and RC classes. And yet, probably none of them would qualify as a fully-fledged OO system...

Read more »

An introduction to Stan with R

January 21, 2019
By
An introduction to Stan with R

Stan is a probabilistic programming language for specifying statistical models. Stan provides full Bayesian inference for continuous-variable models through Markov Chain Monte Carlo methods such as the No-U-Turn sampler, an adaptive form of Hamiltonian Monte Carlo sampling. Penalized maximum likelihood estimates are calculated using optimization methods such as the limited memory Broyden-Fletcher-Goldfarb-Shanno algorithm. Stan can be called through R...

Read more »

LSTM with Keras & TensorFlow

November 26, 2018
By
LSTM with Keras & TensorFlow

The aim of this tutorial is to show the use of TensorFlow with KERAS for classification and prediction in Time Series Analysis. The latter just implement a Long Short Term Memory (LSTM) model (an instance of a Recurrent Neural Network which avoids the vanishing gradient problem). Introduction The code below has the aim to quick introduce Deep Learning analysis with TensorFlow...

Read more »

Online resources for teaching

November 5, 2018
By
Online resources for teaching

In this session I will try to show some utilities present in the web. One of them will help us to execute R code from the web, using an online compiler, without installing any kind of software in our computers. The other one, it can help us to solve optimization problems by a graphics way. We can draw the...

Read more »

An introduction to Shiny II

October 15, 2018
By
An introduction to Shiny II

This is our second session introducing Shiny, an R package that allows to develop interactive Apps in a familiar framework for regular R-users. During the first session we focused on the structure and workflow basics, and now, we will go further on input and output objects, reactivity, layouts and data handling. All these functionalities will be reviewed by product of...

Read more »

Search R-bloggers

Sponsors

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)