June 2015

Pairwise-complete correlation considered dangerous

June 16, 2015 | Joseph Rickert

by B. W. Lewis This note warns about potentially misleading results when using the use=pairwise.complete.obs and related options in R’s cor and cov functions. Pitfalls are illustrated using a very simple pathological example followed by a brief list of alternative ways to deal with missing data ... [Read more...]

How to place titles in lattice plots

June 16, 2015 | Markus Gesmann

I like the Economist theme in the latticeExtra package. It produces nice looking charts that mimic the design of the weekly newspaper, such as in this example:For some time I wondered how I could put the title of my lattice plots into the top left corner as well (by ... [Read more...]

North American seminars: June 2015

June 15, 2015 | Rob J Hyndman

For the next few weeks I am travelling in North America and will be giving the following talks. 19 June: Southern California Edison, Rosemead CA. “Probabilistic forecasting of peak electricity demand”. 23 June: International Symposium on Forecasting, Riverside CA. “MEFM: An R package for long-term probabilistic forecasting of electricity demand”. 25 June: Google, ... [Read more...]

A step by step (screenshots) tutorial for upgrading R on Windows

June 15, 2015 | Tal Galili

tl;dr If you are running R on Windows you can easily upgrade to the latest version of R using the installr package. Simply run the following code: # installing/loading the latest installr package: install.packages("installr"); library(installr) # install+load installr   updateR() # updating R. Running “updateR()” will detect if ...
[Read more...]

metricsgraphics 0.8.5 is now on CRAN!

June 15, 2015 | hrbrmstr

I’m super-pleased to announce that the Benevolent CRAN Overlords accepted the metricsgraphics package into CRAN over the weekend. Now, you no longer need to rely on github/devtools to use MetricsGraphics.js charts from your R scripts. If you’re not familiar with htmlwidgets, take a look at the ... [Read more...]

Plotting spatial neighbors in ggmap

June 15, 2015 | Maxwell B. Joseph

The R package spdep has great utilities to define spatial neighbors (e.g. dnearneigh, knearneigh, with a nice vignette to boot), but the plotting functionality is aimed at base graphics. If you’re hoping to plot spatial neighborhoods as line segments in ggplot2, or ggmap, you’ll need the neighborhood ... [Read more...]

Shiny Wool Skeins

June 15, 2015 | aschinchon

Chaos is not a pit: chaos is a ladder (Littlefinger in Game of Thrones) Some time ago I wrote this post to show how my colleague Vu Anh translated into Shiny one of my experiments, opening my eyes to an amazing new world. I am very proud to present you ...
[Read more...]

Connect R to Bloomberg with the RBlpapi package

June 15, 2015 | David Smith

For anyone who works with financial data and has access to a Bloomberg terminal, there is a new R package to interface to Bloomberg data services: RBlpapi. (If you had searched for an R connection to Bloomberg you wouldn’t have found this one — Bloomberg is happy to have software ... [Read more...]

Are These Losses from The Same Distribution?

June 14, 2015 | statcompute

In Advanced Measurement Approaches (AMA) for Operational Risk models, the bank needs to segment operational losses into homogeneous segments known as “Unit of Measures (UoM)”, which are often defined by the combination of lines of business (LOB) and Basel II event types. However, how do we support whether the losses ... [Read more...]

How to use SparkR within Rstudio?

June 14, 2015 | Shige

Setting up Spark and SparkR is quite easy (assume you are running v.1.4): just grab one of the pre-built binaries and unzip to a folder. There is also a shell script to start SparkR from command line. The document suggest to put the following linesSys.... [Read more...]

Parallel and a new laptop

June 14, 2015 | Wingfeet

I am thinking about a new laptop. For one thing a 1366*768 resolution just seems to get impractically small. Secondly, faster comutations, more memory.Regarding CPU speed, my current laptop has a lowly Celeron 877. From what I see at my computers activ... [Read more...]

The Overlap Coefficient

June 14, 2015 | DomPazz

I'm currently working with a client who is researching best covariance matrices for financial time series.  Specifically, they are looking at what best describes 1 month out of sample distributions.  They are not concerned with the means, just the variance.A paper on the subject from the Journal of Portfolio Management ... [Read more...]

HTTPS for CRAN: how and why

June 13, 2015 | Jeroen Ooms

R gained some basic support for https in version 3.2.0 (see NEWS) via the method = "libcurl" argument in base functions download.file and url. The global option download.file.method is used to make this the default. Unfortunately the implementation has a few limitations: there is no way to set request ...
[Read more...]

Processing an XL grading sheet with R

June 13, 2015 | Nathalie

This tutorial is dedicated to Vincent and to Erwan, the former for proposing me an interesting challenge to solve with R and the latter for his suspicious remarks about the language not being suited for this kind of task. Disclaimer: of course, this script can not be used on a ... [Read more...]
1 4 5 6 7 8 11

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)