June 2018

Fast Fiedler Vector Computation

June 23, 2018 | schochastics

This is a short post on how to quickly calculate the Fiedler vector for large graphs with the igraph package.
#used libraries
library(igraph)    # for network data structures and tools
library(microbenchmark)    # for benchmark results
Fiedler Vector with eigen My goto approach at the start was using the eigen() function to compute the whole spectrum of the Laplacian Matrix.
g <- sample_gnp(n = 100,p = 0.1,directed = FALSE,loops = FALSE)
M <- laplacian_matrix(g,sparse = FALSE)
spec <- eigen(M)
comps <- sum(round(spec$values,8)==0)
fiedler <- spec$vectors[,comps-1]
While this is easy ... [Read more...]

A forecast ensemble benchmark

June 23, 2018 | R on Rob J Hyndman

Forecasting benchmarks are very important when testing new forecasting methods, to see how well they perform against some simple alternatives. Every week I get sent papers proposing new forecasting methods that fail to do better than even the simplest benchmark. They are rejected without review. Typical benchmarks include the naï...
[Read more...]

Correspondence Analysis of Mexican Discourses

June 23, 2018 | --Jean Arreola--

Correspondence Analysis Correspondence analysis is a multivariate statistical technique that summarizes a set of categorical data in a two dimensional form. It’s like the equivalent of Principal Component Analysis but for categorical data. Correspondence analysis is usually applied to contigency tables. In this post, we will apply it to ... [Read more...]

Forecasting my weight with R

June 23, 2018 | Econometrics and Free Software

I’ve been measuring my weight almost daily for almost 2 years now; I actually started earlier, but not as consistently. The goal of this blog post is to get re-acquaiented with time series; I haven’t had the opportunity to work with time series for a long time now and ... [Read more...]

A primer in using Java from R – part 1

June 23, 2018 | Jozef's Rblog

Introduction This primer shall consist of two parts and its goal is to provide a walk-through of using resources developed in Java from R. It is structured as more of a “note-to-future-self” rather than a proper educational article, I however hope that some readers may still find it useful. It ... [Read more...]

A primer in using Java from R – part 1

June 23, 2018 | Jozef's Rblog

Introduction This primer shall consist of two parts and its goal is to provide a walk-through of using resources developed in Java from R. It is structured as more of a “note-to-future-self” rather than a proper educational article, I however hope that some readers may still find it useful. It ... [Read more...]

ICA on Images with Python

June 23, 2018 | Andrew Treadway

Click here to see my recommended reading list. What is Independent Component Analysis (ICA)? If you’re already familiar with ICA, feel free to skip below to how we implement it in Python. ICA is a type of dimensionality reduction algorithm that transforms a set of variables to a new ...
[Read more...]

But We Won Everywhere but the Scoreboard

June 22, 2018 | Analysis of AFL

Something that gets to many a footy fan, is the feeling that your team has won the game in most areas expect on the scoreboard. Thinking about this statement a little bit deeper has the following implication. That there are some areas of the game, that if you win, you ... [Read more...]

future.apply – Parallelize Any Base R Apply Function

June 22, 2018 | JottR on R

Got compute? future.apply 1.0.0 - Apply Function to Elements in Parallel using Futures - is on CRAN. With this milestone release, all* base R apply functions now have corresponding futurized implementations. This makes it easier than ever before to parallelize your existing apply(), lapply(), mapply(), … code - just prepend future_ ...
[Read more...]

Thanks for Reading!

June 22, 2018 |

As I've been blogging more about statistics, R, and research in general, I've been trying to increase my online presence, sharing my blog posts in groups of like-minded people. Those efforts seem to have paid off, based on my view counts over the past ...
[Read more...]

A guide to working with character data in R

June 22, 2018 | David Smith

R is primarily a language for working with numbers, but we often need to work with text as well. Whether it's formatting text for reports, or analyzing natural language data, R provides a number of facilities for working with character data. Handling Strings with R, a free (CC-BY-NC-SA) e-book by ... [Read more...]

Using DataCamp’s Autograder to Teach R

June 22, 2018 | filip Schouwenaars

Immediate and personalized feedback has been central to the learning experience on DataCamp since we launched the first courses. If students submit code that contains a mistake, they are told where they made a mistake, and how they can fix this. You can play around with it in our free ... [Read more...]

Melt and cast the shape of your data.frame – Exercises

June 22, 2018 | sindri

  Datasets often arrive to us in a form that is different from what we need for our modelling or visualisations functions who in turn don’t necessary require the same format. Reshaping data.frames is a step that all analysts need but many struggle with. Practicing this meta-skill will in ...
[Read more...]

Creating Slopegraphs with R

June 22, 2018 | Chuck Powell

Presenting data results in the most informative and compelling manner is part of the role of the data scientist. It's all well and good to master the arcana of some algorithm, to manipulate and master the numbers and bend them to your will to produce a “solution” that is both ...
[Read more...]

The Fundamental Principles of Analytical Design

June 21, 2018 | Analysis of AFL

I have just finished reading the book Beautiful Evidence by Edward Tufte and in it he talks about the fundamental principles of analytical design. Henri Matisse I do not paint things, I paint only the differences between things Show Comparisons, Contrasts, Differences When looking at a graph or reading a ...
[Read more...]
1 2 3 4 5 6 15

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)