Combining Base+Grid Graphics

October 4, 2011
By
Combining Base+Grid Graphics

R provides several frameworks for composing figures. Base graphics is the simplest, grid is more advanced, and the lattice/ggplot packages provide convenient abstractions of the grid graphics system. Multi-element figures can be readily created in base...

Read more »

Simple time series plot using R : Part 2

October 4, 2011
By
Simple time series plot using R : Part 2

I would like to share my experience of plotting different time series in the same plot for comparison. As an assignment I had to plot the time series of Infant mortality rate(IMR) along with the SOX emission(sulphur emission) for the past 5 decades in ...

Read more »

permute: a package for generating restricted permutations

October 4, 2011
By
permute: a package for generating restricted permutations

Multivariate ordination methods are commonly used in ecology to investigate patterns in species composition in space or time. Constrained ordination methods such as redundancy analysis (RDA) and canonical correspondence analysis (CCA) are effectively just multiple regressions, but we lack the … Continue reading →

Read more »

Calculating and graphing within-subject confidence intervals for ANOVA

October 4, 2011
By
Calculating and graphing within-subject confidence intervals for ANOVA

Psychologists are gradually coming round to the view that it is a good idea to present interval estimates alongside point estimates of statistics. The most common statistic reported in psychology research is almost certainly the mean (strictly...

Read more »

Example 9.8: New stuff in SAS 9.3– Bayesian random effects models in Proc MCMC

October 4, 2011
By
Example 9.8: New stuff in SAS 9.3– Bayesian random effects models in Proc MCMC

Rounding off our reports on major new developments in SAS 9.3, today we'll talk about proc mcmc and the random statement.Stand-alone packages for fitting very general Bayesian models using Markov chain Monte Carlo (MCMC) methods have been available for...

Read more »

Tutorial on using the rworldmap package

October 4, 2011
By
Tutorial on using the  rworldmap package

This blog following up my previous oneattempts to explain how the geo-pie map was created. I do not know how to attach a .rflow file in this blog. What you can do is to copy the following code into Notepad … Continue reading →

Read more »

permute: a package for generating restricted permutations

October 4, 2011
By
permute: a package for generating restricted permutations

Multivariate ordination methods are commonly used in ecology to investigate patterns in species composition in space or time. Constrained ordination methods such as redundancy analysis (RDA) and canonical correspondence analysis (CCA) are effectively just multiple regressions, but we lack the parametric theory to adequately test the statistical significance of terms in the model. Other techniques likewise lack the appropriate...

Read more »

How to show explained variance in a multilevel model

October 3, 2011
By
How to show explained variance in a multilevel model

In this post I will show one way to display explained variance using a line chart. There is no default plot for displaying the effect of each factor on deviance of the model, so this is a tentative proposal for my dissertation. The following values were obtained using multilevel models performed in R (thanks for

Read more »

Oracle’s Big Data Appliance to include R

October 3, 2011
By

At the Oracle OpenWorld conference in San Francisco today, Oracle announced the new Oracle Big Data Appliance, "a new engineered system that includes an open source distribution of Apache™ Hadoop™, Oracle NoSQL Database, Oracle Data Integrator Application Adapter for Hadoop, Oracle Loader for Hadoop, and an open source distribution of R." Oracle's foray into the Hadoop and NoSQL spaces...

Read more »

Visualizing Climbing Ropes

October 3, 2011
By
Visualizing Climbing Ropes

Today’s market of climbing ropes offers a huge variety of models to choose from. If you don’t have a good idea of what you want, the task of selecting a rope can become a true challenge, or worst, almost a … Continue reading →

Read more »

The four steps to publication-grade graphics in R

October 3, 2011
By

This Article is also available in EN, ES.

Read more »

OLS beta VS. Robust beta

October 3, 2011
By
OLS beta VS. Robust beta

In financial context, is suppose to reflect the relation between a stock and the general market. A broad based index such as the S&P 500 is often taken as proxy for the general market. The , without getting into too … Continue reading →

Read more »

Twitter updates on R Graph Gallery

October 3, 2011
By
Twitter updates on R Graph Gallery

I've added a twitter search widget that searches for the #rgraphgallery hashtag or the url of the gallery on the front page.

Read more »

Predictability of kurtosis and skewness in S&P constituents

October 3, 2011
By
Predictability of kurtosis and skewness in S&P constituents

How much predictability is there for these higher moments? Data The data consist of daily returns from the start of 2007 through mid 2011 for almost all of the S&P 500 constituents. Estimates were made over each half year of data.  Hence there are 8 pairs of estimates where one estimate immediately follows the other. … Continue reading...

Read more »

Model Exploration using K-sample Plot in Big Data

October 3, 2011
By
Model Exploration using K-sample Plot in Big Data

Generically, error rate of predicting binary variable by a certain model becomes plateau increasing sample size. When the model fits training data , the error rate gains from 0 to true error. And when the model fits test data, the error rate decreases ...

Read more »

Visual Illusions: Google vs Facebook vs Yahoo

October 3, 2011
By
Visual Illusions: Google vs Facebook vs Yahoo

The ability to visualize data, enabled by the advent of graphical computer tools, has been a great boon to Cap and Perf. The power derives from the way graphical displays provide an efficient impedance match to the visual system in our brain. The weakness derives from the way graphical displays provide an efficient impedance match to the visual system...

Read more »

Jeff Augen Volatility Spike Code in R

October 2, 2011
By
Jeff Augen Volatility Spike Code in R

Jeff Augen has written many excellent books on options trading, including&nb...

Read more »

Adding a volatility filter with VIX

October 2, 2011
By
Adding a volatility filter with VIX

We saw in the basic system how we could add a factor, namely the 200 day moving average, to improve the overall performance of our system. You could spend a lot of time playing with different moving averages, and different combinations of crossovers if...

Read more »

vectorplot in rasterVis

October 2, 2011
By
vectorplot in rasterVis

The function slopeAspect from raster provides the vector field (gradient) from a scalar field stored in a RasterLayer object. The magnitude (slope) and direction (aspect) of the vector field is usually displayed with a set of arrows (e.g. quiver in Matlab). rasterVis includes now a method, vectorplot, to calculate and display this vector field

Read more »

Modelling with R: part 2

October 2, 2011
By
Modelling with R: part 2

I apologize for the delay in the second post (just in case anybody was waiting), I had been vary involved with work the past week. I shall try to be more regular. Well, in the previous post, we successfully imported data into R and got a basic "feel" o...

Read more »

Latent class mixed models – with graphics

October 2, 2011
By
Latent class mixed models – with graphics

Foreword Apologies that the output isn’t showing well as far as spacing and alignment is concerned. Am working on fixing that! Background Generally when we have a set of data, we have known groupings. Be that three different treatment groups, … Continue reading →

Read more »

Let R fly: Visualizing Export Data using R

October 2, 2011
By
Let R fly: Visualizing Export Data using R

Having been using R for 5+ years, visiting www.r-bloggers.com daily, learning cool tricks from it and knowing cool UseRs from it, I finally decide to quit being an observer and start to be a contributor to this wonderful community. In this very … Continue reading →

Read more »

Overhead cost of a function call

October 1, 2011
By
Overhead cost of a function call

Recently, I would like to apply unit testing method to my R program. The first thing i need to chop every few lines of the code into functions so that I can test each of them. A Question comes up to my mind: What is the overhead cost of a function call? To answer this

Read more »

Updated examples that combine Rcpp and CppBugs

October 1, 2011
By

This example is very informative in illustrating how to use CppBugs module with Rcpp to conduct fast MCMC simulation in R.

Read more »

Reminder: One week til Rcpp class in San Francisco

October 1, 2011
By

Just a quick note to remind everyone that the Rcpp class in San Francisco, which I am holding together with Revolution Analytics, will take place a week from today. We are happy to report that the number of registrations has met our initial target...

Read more »

Dollars and cents: How are you at estimating the total bill?

September 30, 2011
By
Dollars and cents: How are you at estimating the total bill?

When estimating the cost of a bunch of purchases, a useful heuristic is rounding to the nearest dollar. (In fact, on US income tax returns, one is allowed to omit the cents). If prices were uniformly distributed, the following two heuristics would be equally accurate: * Rounding each item up or down to the nearest dollar and summing * Rounding each...

Read more »

R Graph Gallery – Donations Welcome

September 30, 2011
By
R Graph Gallery – Donations Welcome

I've added a PayPal button into the graph, just in case people want to help the development of the website

Read more »

Difficult Month for One of My Best Ideas

September 30, 2011
By
Difficult Month for One of My Best Ideas

THIS IS NOT INVESTMENT ADVICE.  MY IDEAS PROBABLY WILL LOSE YOU MONEY, AND I WILL NOT LET YOU KNOW WHEN I CHANGE MY MIND. Bloomberg’s article “Asian Currencies Set for Worst Month Since 1997 Crisis Caused IMF Bailouts” demonstrates why with ...

Read more »

ttrTests This is a Test Test 3:Data Snoopy

September 30, 2011
By
ttrTests This is a Test Test 3:Data Snoopy

THIS IS NOT INVESTMENT ADVICE.  IT IS JUST AN EXAMPLE AND WILL LIKELY LOSE LOTS OF MONEY IF YOU PURSUE WHAT IS DISCUSSED.  READER IS RESPONSIBLE FOR THEIR OWN GAINS OR LOSSES.  IF YOU ARE AN UNLIKELY WINNER, I WOULD LOVE TO HEAR YOUR STO...

Read more »