Friday Function: setInternet2

April 15, 2011
By
Friday Function: setInternet2

Corporate IT networks are a pain for programmers. Ideally, when programming, you want the freedom to download, install and run any software that you want. Unfortunately, in the interests of security, many programmers find themselves a little restricted at the office. (I’m sure that many network admins will protest that the situation works both ways

Read more »

Slides and replay for PMML webinar

April 15, 2011
By

If you missed Wednesday's webinar on Deploying Predictive Analytics with Revolution R, PMML and ADAPA, the presentation slides and the replay (in WMV, reg. req'd) format are now available for download. Here are some additional references, from the closing slide: How Revolution R and ADAPA work together The PMML Package reference White Paper: Deploying Advanced Analytics Using R and...

Read more »

Visualizing tax brackets

April 15, 2011
By
Visualizing tax brackets

With Tax Day fast approaching here in the US, there's been a lot of discussion about tax policy and in particular the tax rates paid by the highest income earners. Like in many countries, here the income tax system is bracketed: Tax Bracket Single Married Filing Jointly 10% Bracket $0 – $8,375 $0 – $16,750 15% Bracket $8,375 –...

Read more »

Rook shipped to CRAN

April 15, 2011
By
Rook shipped to CRAN

I sometimes feel like this picture: alone, left with just my thoughts and a little light to illuminate my work. For my daughter pictured above on the stool, her work is a pen and ink drawing. For me, it’s a finished piece of software to share with t...

Read more »

RStudio 0.93 Beta Available

April 15, 2011
By

In case you miseed, 0.93 Beta of RStudio is released! A good set of fixes, including vignette() (sorry edit() not compatible yet). The panel layout is fully customizable, and there are a load of bug fixes. See the Release Notes for more info.

Read more »

RStudio 0.93 Beta Available

April 15, 2011
By
RStudio  0.93 Beta Available

In case you miseed, 0.93 Beta of RStudio is released! A good set of fixes, including vignette() (sorry edit() not compatible yet). The panel layout is fully customizable, and there are a load of bug fixes. See the Release Notes for more info.

Read more »

Recursive Trading System in R

April 15, 2011
By
Recursive Trading System in R

I have a trick knee. Normally, it works just fine. But if I stand on my head when its raining on Tuesdays and Thursdays and pinch my nose, it hurts. Not just a little. It hurts a lot. I went to the doctor and he told me not to stand on my head when it'...

Read more »

Download R 2.13.0 for Windows

Some of you may hear that the new release of R 2.13.0 is out, with some Windows-specific changes to R 2.13.0:file.exists() and unlink() have more support for files > 2GB;A few more file operations will now work with >2GB files.which could help us to relieve the worry of handling large datasets in R.

Read more »

RStudio and RTextTools: A Perfect Pairing

The development team has spent the past six months creating the best possible experience for RTextTools users. A few months into development, we heard about a new IDE called RStudio, which has one of the cleanest interfaces to R we've seen. It integrates many R tools (graphing, file management, workspace management, tabbed source editor, and more) into a single,...

Read more »

How to upgrade R on windows 7

April 15, 2011
By

Background – time to upgrade to R 2.13.0 The news of the new release of R 2.13.0 is out, and the R blogosphere is buzzing. Bloggers posting excitedly about the new R compiler package that brings with it the hope to speed up our R code with up to 4 times improvement. So it is time

Read more »

R 2.12 to 2.13 package upgrade

April 14, 2011
By
R 2.12 to 2.13 package upgrade

If you: use Linux have just upgraded your R installation from 2.12 to 2.13 installed some/all of your packages in your home area (e.g. ~/R/i486-pc-linux-gnu-library/2.12) and… …are wondering why R can’t see them any more just do this: # at a shell prompt cp ~/R/i486-pc-linux-gnu-library/2.12 ~/R/i486-pc-linux-gnu-library/2.13 # in R console update.packages(checkBuilt=TRUE, ask=FALSE) # back to

Read more »

Problems with ggplot2 0.8.9 and R 2.13.0 on Mac OS X via plyr 1.5

April 14, 2011
By

This morning I tried to completely update my R installation. I first dumped a list of all the packages I have on my system using the installed.packages() function. Then I installed R 2.13.0 using the OS X disk image. And finally I reinstalled all of my packages from scratch. Unfortunately, I ran into some serious

Read more »

Easy Upgrading of R

April 14, 2011
By

For those who are excited about the new 2.13.0 release of R (particularly the compiler package) but are grumbling about having to remember what packages they have and re-install them, see this great advice or this piece on upgrading in osx for how to a...

Read more »

gRain: genetics example

April 14, 2011
By
gRain: genetics example

gRain is an R package for "probability propagation in graphical independence networks, also known as probabilistic expert systems (which includes Bayesian networks as a special case)". This package caught my attention because some genetic models can b...

Read more »

gRain: genetics example

April 14, 2011
By
gRain: genetics example

gRain is an R package for "probability propagation in graphical independence networks, also known as probabilistic expert systems (which includes Bayesian networks as a special case)". This package caught my attention because some genetic models can b...

Read more »

In case you missed it: March Roundup

April 14, 2011
By

In case you missed them, here are some articles from February of particular interest to R users. The doSMP package, which enables parallel processing for R on multiprocessor machines, is now available on CRAN. The Offensive Politics blog provided R code used to make a map of precinct returns in the Chicago mayoral election. A connector to integrate R...

Read more »

ARMA Models for Trading, Part I

April 14, 2011
By
ARMA Models for Trading, Part I

Lately I have been testing trading models based on methods from various fields: statistics, machine learning, wavelet analysis and others. And I have been doing all that in R! In this series, I will try to share some of these efforts starting with the well-known from statistics Autoregressive Moving Average Model (ARMA). There is a

Read more »

Graph Bisection in R

April 14, 2011
By
Graph Bisection in R

Recently I had to partition a set of SNPs into a training set and a test set. Making a random split would not do: both sets would likely contain very similar SNPs due to linkage disequilibrium (LD), making them non-independent. … Continue reading →

Read more »

Computing Statistical Power

April 14, 2011
By
Computing Statistical Power

Today's task is to compute a statistical power function in R. For a good definition of power, go here. Thinking about the power of a testing procedure is an often-overlooked aspect of hypothesis testing.I also explain what power (in a statistical sens...

Read more »

Computing Statistical Power

April 14, 2011
By
Computing Statistical Power

Today's task is to compute a statistical power function in R. For a good definition of power, go here. Thinking about the power of a testing procedure is an often-overlooked aspect of hypothesis testing.I also explain what power (in a statistical sens...

Read more »

R 2.13.0 is released!

April 14, 2011
By
R 2.13.0 is released!

The new R 2.13.0 is out! Get the source code from here. Take a look at these posts for some miscellaneous advices to make the upgrade easier. Also this thread on stackoverflow and this post contributed by Tal Galili&nbs...

Read more »

R 2.13.0 is released!

April 14, 2011
By
R 2.13.0 is released!

The new R 2.13.0 is out! Get the source code from here. Take a look at these posts for some miscellaneous advices to make the upgrade easier. Also this thread on stackoverflow and this post contributed by Tal Galili&nbs...

Read more »

Day #20 RGG’s not working where I want it

April 14, 2011
By

If you didn’t read the post from yesterday, I urge you to do so, or you won’t get what I’m writing here. http://flyordie.sin.khk.be/2011/04/08/day-19-rgg-s-a-btch/ So, coming back from yesterday, I had a talk with my supervisor who to...

Read more »

Day #21 Ternary plot user interface

April 14, 2011
By

Today I have been able to get 2 more templates working: The ternary plot and the correlation ellipses. They were already “working”, but just the initial script. which can be found here: ternary plot: http://addictedtor.free.fr/graphiques/RG...

Read more »

Day #22 Correlation Ellipses and 2D histograms user interfaces

April 14, 2011
By

After 2 restarts of my PC and 3 times restarting Rserve and Knime, the red text of doom (look at the bottom of Day 21) was finally gone. So I could start on my correlation ellipses. this wasn’t so hard. I added a panellistbox to my template, whic...

Read more »

Day #22 Correlation Ellipses and 2D histograms user interfaces

April 14, 2011
By

After 2 restarts of my PC and 3 times restarting Rserve and Knime, the red text of doom (look at the bottom of Day 21) was finally gone. So I could start on my correlation ellipses. this wasn’t so hard. I added a panellistbox to my template, whic...

Read more »

Mixtures in Madrid (3)

April 14, 2011
By
Mixtures in Madrid (3)

For my second lecture today, I need to plot a likelihood surface for a basic two-component mixture with only the means unknown: here is the R code to speed up things llsurf=function(trumyn=2.,wayt=.3,var2=1.,ssiz=500){ # draws the log-likelihood surface and a random sample sd2=sqrt(var2) parti=(runif(ssiz)>wayt) sampl=(1-parti)*rnorm(ssiz)+parti*(trumyn+sd2*rnorm(ssiz)) mu2=mu1=seq(min(sampl),max(sampl),.1) mo1=mu1%*%t(rep(1,length(mu2))) mo2=(rep(1,length(mu2)))%*%t(mu2) ca1=-0.5*mo1*mo1 ca2=-0.5*mo2*mo2 like=.1*(ca1+ca2) # log prior N(0,10) for

Read more »

R 2.13.0 released

April 13, 2011
By

The R Core Group has released the latest update to open-source R, R 2.13.0 is now available. You can download the new source distribution from the R Project website, and I see from the Download R tool at inside-R.org that binaries for Windows and Mac are already available at my local CRAN mirror (and, shortly, yours too). The (long)...

Read more »

Le Monde puzzle #13

April 13, 2011
By
Le Monde puzzle #13

This week, Le Monde offers not one but three related puzzles: Is it possible to label the twelve edges of a cube by consecutive numbers such that the sum of the edge numbers at any of the eight nodes is constant? Is it possible to label the eight nodes of a cube by consecutive numbers

Read more »