Combining R and LaTeX with Sweave

January 6, 2009
By

Today I did some experiments to learn how to combine R and LaTeX to create reproducible research reports. Here are my first results:First Demo ...

Read more »

Combining R and LaTeX with Sweave

January 6, 2009
By

Today I did some experiments to learn how to combine R and LaTeX to create reproducible research reports. Here are my first results:First Demo ...

Read more »

Multiseat setup via Userful

January 3, 2009
By

As I had blogged a while back, multiseat use broke following the normal upgrade to Ubuntu 8.10. I had also suggested a fix but it turns out that the fix didn't work. So we had a clear regression -- multiseat use of a single Ubuntu workstation with two screens, two keyboards and two mice no longer worked. Consequently, the kids ended...

Read more »

RWinEdt and Windows Vista/Window 7

January 1, 2009
By

As a R user, I like to use RWinEdt as the text editor. I write code on it and send code to R by clicking buttons.I had a spare laptop from Jennifer. It does not have a working screen. I use that to test all kinds of software and OS systems. Recentl...

Read more »

RWinEdt and Windows Vista/Window 7

January 1, 2009
By

As a R user, I like to use RWinEdt as the text editor. I write code on it and send code to R by clicking buttons.I had a spare laptop from Jennifer. It does not have a working screen. I use that to test all kinds of software and OS systems. Recentl...

Read more »

R/Finance conference in Chicago in April: Call for Papers

January 1, 2009
By

The following went out to the R-announce and R-SIG-Finance mailing lists a few days ago. The conference already has a very strong lineup of invited speakers, and we are now asking R / Finance users from both academia and industry to submit suitable one-page abstracts: Call for Papers ...

Read more »

R/Finance 2009: Applied Finance with R

December 30, 2008
By
R/Finance 2009: Applied Finance with R

Call for PapersThe Finance Department of the University of Illinois at Chicago (UIC),the International Center for Futures and Derivatives at UIC, andmembers of the R finance community are pleased to announceR/Finance 2009: Applied Finance with Ron Apri...

Read more »

New stuff in the gdata R package

December 30, 2008
By
New stuff in the gdata R package

I have moved quite some functions from my "testing/playground" R package ggmisc to the gdata package. Bellow is the relevant text from the NEWS file. Here are the links:SVNSource packageWindows ZIP packageNEWS:New function .runRUnitTestsGdata that enab...

Read more »

RQuantLib 0.2.10

December 29, 2008
By

Earlier this month and following the release of QuantLib 0.9.7, I updated RQuantLib to version 0.2.10. For once, there were no changes required to keep up with QuantLib. Rather, changes were internal as Rcpp had been spun off into its own package. As Rcpp is now in Debian, RQuantLib itself was also updated in Debian...

Read more »

Rcpp now in Debian

December 25, 2008
By

Rcpp is an interface package that makes it easier to add C++ code to GNU R. It had started as a part of my RQuantLib project but has now come into its own as blogged here and here. As of today, Rcpp is now also available as a Debian package.

Read more »

High-Performance Computing with R

December 25, 2008
By
High-Performance Computing with R

Dirk has posted a new version of slides for a tutorial "Introduction to High-Performance Computing with R".

Read more »

Very flattering

December 24, 2008
By

Good friend and fellow Oak Park / River Forest runner Paul Oppenheim used his column in the local weekly for some very flattering words about the marathon runners in our informal running group and even highlighting my personal World Marathon Majors adventure. I may just have to keep a copy for my epitaph.

Read more »

Statistics for Neuroscience (Neuroscience 9506b)

December 23, 2008
By
Statistics for Neuroscience (Neuroscience 9506b)

This coming winter term (Jan-Apr, 2009) I will be teaching my graduate seminar in the Graduate Program in Neuroscience, Statistics for Neuroscience (Neuroscience 9506b). The course webpage can be found . I will be doing two things differently this … Continue reading →

Read more »

gdata gains trimSum function

December 20, 2008
By
gdata gains trimSum function

I was doing some drawing in R and I needed to trim some values to keep the data (x axis) in reasonable limits, but I did not want to loose that info. Therefore, I summed the values that would be trimmed. Since I was repeating this, I wrote a function a...

Read more »

Rtools and Cygwin on MS Windows

December 20, 2008
By
Rtools and Cygwin on MS Windows

Duncan Murdoch provides Rtools which ease the installation of tools that are needed to do R package development/testing on MS Windows. The Rtools is a collection of various tools. However, if you also use Cygwin on MS Windows, you can expect problems s...

Read more »

Extra moments measure

December 16, 2008
By

The following functions are intended to replicate calculations for taking higher moments of hedge fund returns into account in analyzing particular investments.  Most of the formulae are taken from various EDHEC research papers.# All returns...

Read more »

R matrices in C functions

December 13, 2008
By

Using the .C() function in R, you can only pass vectors. Since R stores matrices columnwise as vectors anyhow, they can be passed to your C function as vectors (along with the number of rows in the matrix) and then accessed in familiar manner...

Read more »

R matrices in C functions

December 13, 2008
By

Using the .C() function in R, you can only pass vectors. Since R stores matrices columnwise as vectors anyhow, they can be passed to your C function as vectors (along with the number of rows in the matrix) and then accessed in familiar manner...

Read more »

Memory limit management in R

December 13, 2008
By
Memory limit management in R

R keeps all the data in RAM. I think I read somewhere that S+ does not hold all the data in RAM, which makes S+ slower than R. On the other hand, when we have a lot of data, R chockes. I know that SAS at some "periods" keeps data (tables) on disk in sp...

Read more »

Functions for portfolio analysis

December 11, 2008
By

Functions include:1. efficient.portfolio      compute minimum variance portfolio subject to target return2. globalMin.portfolio      compute global minimum variance portfolio3. tangency.portf...

Read more »

Convert Splus to R

December 10, 2008
By

Suppose you have got used to Splus and want to switch to R software (why bother to change? R is free while Splus is not, fair enough?), what can you do? since there are many functions in S-PLUS that are missing in R, one way is to understand the functions and write your owns, working N hours without sleep...

Read more »

Computational Finance with R

December 5, 2008
By
Computational Finance with R

Krishna Kumar, Jan Vecer and the great folks at REvolution computing put on a great event at the beautiful Columbia University campus on the Upper West Side of New York.Presentations by Whit Armstrong, Anthony Brockwell, Bryan Lewis, Scott Payseur, Pet...

Read more »

Some of my other R-resources

December 5, 2008
By

I am running this blog as a kind of learning journal, so I can look up some of the solutions I come up when I run into problems on my way to R-mastery. I have some other R-related resources which may be of interest to other R-fellas.A much more structu...

Read more »

Some of my other R-resources

December 5, 2008
By

I am running this blog as a kind of learning journal, so I can look up some of the solutions I come up when I run into problems on my way to R-mastery. I have some other R-related resources which may be of interest to other R-fellas.A much more structu...

Read more »

First and easy steps with R and Sweave

November 28, 2008
By
First and easy steps with R and Sweave

What really sold me to the idea of using Sweave and therefore (re)learning LaTeX was the idea of Reproducible Research. Charlie Geyer has put together some examples how to mix and match R and LaTeX with Sweave. Today's goal therefore is to run his examples and to see, what problems I run into :)Allright, if you all...

Read more »

First and easy steps with R and Sweave

November 28, 2008
By
First and easy steps with R and Sweave

What really sold me to the idea of using Sweave and therefore (re)learning LaTeX was the idea of Reproducible Research. Charlie Geyer has put together some examples how to mix and match R and LaTeX with Sweave. Today's goal therefore is to run his examples and to see, what problems I run into :)Allright, if you all...

Read more »

Sweave.sh plays with cacheSweave

November 26, 2008
By
Sweave.sh plays with cacheSweave

I have added support for caching to Sweave.sh script as implemented in cacheSweave R package written by Roger D. Peng. Now, one can set caching on for chunks that are time consuming (data import, some calculations, ...) and the Sweaving process will r...

Read more »

Calculating an N50 from Velvet output

November 25, 2008
By

In sequencing circles the N50 length is a useful heuristic for judging the quality of an assembly. Here is my definition of N50 length, which you may or may not find intuitive:N50 length is the length of the shortest contig such that the sum of contigs of equal length or longer is at least 50% of the total length...

Read more »

Calculating an N50 from Velvet output

November 25, 2008
By

In sequencing circles the N50 length is a useful heuristic for judging the quality of an assembly. Here is my definition of N50 length, which you may or may not find intuitive: N50 length is the length of the shortest contig such that the sum of contigs of equal length or longer is at least 50% of the total length...

Read more »