December 2017

Building formulae

December 26, 2017 | Econometrics and Free Software

This Stackoverflow question made me think about how to build formulae. For example, you might want to programmatically build linear model formulae and then map these models on data. For example, suppose the following (output suppressed):
data(mtcars)

lm(mpg ~ hp, data = mtcars)
lm(mpg ~I(hp^2), data = mtcars)
lm(mpg ~I(hp^3), data = mtcars)
lm(mpg ~I(hp^4), data = mtcars)
lm(mpg ~I(hp^5), data = mtcars)
lm(mpg ~I(hp^6), data = mtcars)
To avoid doing this, one can write a function that builds the formulae: {{... [Read more...]

random wake

December 26, 2017 | xi'an

Just too often on X validated, one sees questions displaying a complete ignorance of the basics that makes one purposelessly wonder what is the point of trying to implement advanced methods when missing the necessary background. And just as often, I reacted to the question by wondering out loud about ... [Read more...]

Building your own blockchain in R

December 26, 2017 | Bigdata Doc

Everybody is freaking out about the rise of the Bitcoin and the potential of the Blockchain technologies. The advent of cryptocurrencies, game changing use cases, disruption of established business models by disintermediation, etc.. 
By... [Read more...]

ggplot2: Bar Plots

December 25, 2017 | Rsquared Academy Blog - Explore Discover Learn

Introduction This is the ninth post in the series Elegant Data Visualization with ggplot2. In the previous post, we learnt to build line charts. In this post, we will learn to: build simple bar plot stacked bar plot grouped bar plot proportional bar plot map aesthetics to variables specify values ...
[Read more...]

Combined outlier detection with dplyr and ruler

December 25, 2017 | QuestionFlow

Overview of simple outlier detection methods with their combination using dplyr and ruler packages. Prologue During the process of data analysis one of the most crucial steps is to identify and account for outliers, observations that have essentially different nature than most other observations. Their presence can lead to untrustworthy ... [Read more...]

Merry Christmas and Happy New Year!

December 25, 2017 | David Smith

The Revolutions team is celebrating Christmas today, and we're taking a break with family and enjoying good food. And given the number of Eggnogs that are being prepared — thanks to Hadley Wickham's eggnogr Shiny app — it might be a good idea to take the rest of the week off as ... [Read more...]

A Simple Intro to Q-Learning in R: Floor Plan Navigation

December 24, 2017 | Nicole Radziwill

This example is drawn from “A Painless Q-Learning Tutorial” at http://mnemstudio.org/path-finding-q-learning-tutorial.htm which explains how to manually calculate iterations using the updating equation for Q-Learning, based on the Bellman Equation (image from https://www.is.uni-freiburg.de/ressourcen/business-analytics/13_reinforcementlearning.pdf): The […]
[Read more...]

R shiny custom docker server with caching

December 23, 2017 | artstein2017

So now we’re ready to deploy our own custom R Shiny server with caching. We had previously already discussed the pros and cons of hosting your own server, by this we mean a docker based server in the cloud Signing up at https://www.shinyapps.io/ See this https://...
[Read more...]

Plotting Deep Learning Model Performance Trajectories

December 23, 2017 | John Mount

I am excited to share a new deep learning model performance trajectory graph. Here is an example produced based on Keras in R using ggplot2: The ideas include: We plot model performance as a function of training epoch, data set (training and validation), and metric. For legibility we facet on ...
[Read more...]

Tiny Art in Less Than 280 Characters

December 23, 2017 | @aschinchon

Now that Twitter allows 280 characters, the code of some drawings I have made can fit in a tweet. In this post I have compiled a few of them. The first one is a cardioid inspired in string art (more info here): This other is based on Fermat’s spiral (more ...
[Read more...]

Kindle clippings.txt with Python

December 22, 2017 | max humber

Exactly a year ago I posted Kindle clippings.txt with R. Since then things have changed… I’m a Pythonista now! Consequently, I thought it would be fun to update that post and parse highlights with 3.6+ and pandas. Janky, but it works: import panda... [Read more...]
1 2 3 4 5 13

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)