Search Results: "Dirk Eddelbuettel"

27 April 2009

Dirk Eddelbuettel: Review of 'Analysis of Integrated and Cointegrated Time Series with R (2nd ed)' in JSS

A few weeks ago I wrote up a short review of Bernhard Pfaff's nice (but somewhat dry) Analysis of Integrated and Cointegrated Time Series with R (2nd ed) on unit root and cointegration modeling with R. This is now online at the Journal of Statistical Software.

26 April 2009

Dirk Eddelbuettel: R / Finance 2009

Our inaugural R / Finance conference, mentioned here twice is now over. We were fortunate to get seven outstanding invited keynote speakers, as well as eleven excellent presentations. This was preceded by four short tutorials (and I'll post slides from my Introduction to High-Performance Computing with R soon). With about 150 registered participants, plus keynoters, presenters, committee members, representatives from the sponsors (a quick shout of Thanks! to them), some folks from UIC (especially Holly without whom few things would have happened), we were probably around 200 people gathered at UIC. And then there was an extended social program at Jaks which is rather appropriate as we had numerous important committee meetings there over the preceding months. All in all it seems like a successful event. We may even do it again.

24 April 2009

Dirk Eddelbuettel: Real nice Boston Marathon writeup

This article from the Boston Globe gives an excellent description of what running Boston last Monday was like, and why we keep coming back, almost regardless. The writer, for whom it was the fifth Boston and ninth total, expresses the range of emotions, expectations, frustrations, excitements, ups, downs, ... all of which form the challenge of racing a marathon in general, and on this course on a windy day in particular. And just like she concludes that the finish of one marathon leads to planning the next, I registered last night for the Chicago Marathon on October 11, apparently around twelve hours before it sold out. And so it is with regrets that I have to decline Christian's invitation to run Cologne with him on October 4. Another time, hopefully.

23 April 2009

Christian Perrier: Registered for Cologne

Now, I'm registered for Cologne Marathon. So is No l and probably Ralf Treinen. Any other DD or Debian contributors wanting to join in? I know that Dirk Eddelbuettel will probably not (btw, nice run at Boston, Dirk)....but others certainly can...and should ! October 4th, 2009 is still far enough for you guys to plan this..:-)

22 April 2009

Dirk Eddelbuettel: Boston Marathon 2009

Monday was the 113th Boston Marathon. Just like in 2007 (and having skipped last year as I ran London the week before), I went as part of a group of local running friends. We once again had a blast---Boston on Marathon weekend is a real spectacle. Lots of people, lots of excitement, and this time even great weather. The race itself was challenging. Having done it once before, and having come off a really decent last marathon, I may have underestimated the impact of the famous hills. This really is a wonderful but challenging course. Combined with the poor training conditions during this last Chicago winter which forced us indoors for quite a few long runs, as well as a somewhat upset stomach which forced a two-minute break, I came up short and posted an underwhelming second half. The head wind was also a factor that was mentioned in a few reports on the comparatively slow times of the elite runners. So when all was said and done, I ended up with a time of 3:30:13 and 8:01 min/miles which is a little slower than last time. All in all a really great marathon weekend. As my time from Berlin qualifies me for Boston 2010, I may well be back next year.

11 April 2009

Dirk Eddelbuettel: New Garmin Forerunner

Going for a run--or a race--almost always meant grabbing the GPS and often also meant setting a target pace and distance. For the last four and a half years, this was measured by a Garmin Forerunner 201. That's the large rectangular model in the original "brick" form factor. I've come to love the device. Training is great because the distance log, as well as the pacing, keeps you honest. Racing is probably better because it helps a lot with the pacing (but then I also had PRs in race where I had forgotten the GPS at home). But there is a downside. This model sometimes takes forever to find tracking, and has interference / weak signal problems when it is cloudy or moist. But worst of all, it just bonks out in the 'urban jungle' downtown where it drops signals too easily. And now after all these years the display had some minor damage, the strap didn't really hold anymore, and it was generally time for something new. On Tuesday it even lost a quarter mile when we were going for a short but really fast three miler. But then a few days prior I had followed fellow Debian marathoner Christian and used my birthday at the end of this month (as well as the upcoming Boston Marathon) as an excuse for conspicuous comsumption. After some price comparison, I ordered a factory reconditioned Garmin Forerunner 405 from this web discounter at a nice rebate to the regular price. It arrived this afternoon, seemingly shining new and I have been fiddling with it for the last little while. This device features wireless data transfer to a usbstick. This meant booting the laptop in windoze for the first time in years to load the 'client software' after which data transfer proceeded. The Garmin Connect site has very slick presentation and aggregation of the data. The trouble is of course how to get the data there when running Linux... Christian had mentioned the garmin-forerunner-tools package. Unfortunately, this seems to really be written for the Forerunner 305 models as it doesn't see the device at all. Some more googling lead to this page and the gant tarball. All still fairly raw, but with some prodding in the settings of the 405 ('pairing' set to 'on', 'force send' set to 'yes'; which may have to be reset each time ?) I got my two xml files off the gps watch. Yay. We'll see what mode I will settle one. With the 201 and its ancient serial port, I basically just dropped the run and training histories which their fairly limited data collections. Last but not least, fellow Oak Park runner Peter Sagal had a humorous Runner's World column on the whole GPS geekyness. If he'd only known how to pair it with programming geekyness...

2 April 2009

Dirk Eddelbuettel: Rcpp 0.6.5

A minor new maintenance release 0.6.5 of Rcpp just went off to CRAN and Debian. This version corrects a small oversight for the OS X build, and adds the LGPL as file COPYING to the sources.

17 March 2009

Dirk Eddelbuettel: Dianne Reeves at Dominican

Yesterday afternoon, we had another chance to see Dianne Reeves (wikipedia). This time, it almost felt like she came to us as she was headlining at the annual trustee benefit concert at Dominican University, a small college about a mile from our place. And as in 2007 and 2003, she did not disappoint. Great voice, great stage presence. Highly recommended.

15 March 2009

Dirk Eddelbuettel: 2009 March Madness Half Marathon in Cary

This morning it was once more time for the annual March Madness Half Marathon in Cary. This race is basically the start of the running season in Chicagoland. And we could not have asked for better weather. After a really cold and long winter, and a short snapback to really cold temperatures this week, it started to warm up a little yesterday with expectations of more of the same today. So while it was still cold at the start at around 37 degrees, most runners opted for shorts and by the finish temperatures were in the high 40s. Coupled with clear blue skies and no wind, it was a really nice morning for a run. So how did it go? Well, I had pretty low expectations. Training has been difficult with too much snow, rain and plain cold weather. So like most of my running friends, motivation ran pretty low of late. I was really only trying to set a modest pace, and to hope to hang on to it and run steadily. That worked: I didn't walk a single water stop, and while my legs were getting really tired and sore I carried through to the end. Final time was 1:36:08.57 per my stop watch. That's a tad faster than last year, a lot slower than 2007, just a tad slower than 2006, and quite a bit faster than 2005. Next stop: my second Boston Marathon in five weeks and given the underwhelming training this winter, it will be a challenge.

6 March 2009

Dirk Eddelbuettel: Short introduction to R in Finance

Adam Gehr of DePaul University's Finance Department had organized a panel session about R in Finance at the Midwest Finance Association's 58th Annual Meeting which is happening this week here in Chicago. I just posted my slides on my presentations page. The slides give a brief overview of R, the CRAN network and the by now over 1600 packages, mention the Finance Task View, briefly present four different packages (or package sets) and of course beat the drum for our upcoming R/Finance conference that will take place here in Chicago at the end of next month.

4 March 2009

Dirk Eddelbuettel: RQuantLib 0.2.11

The changes in Rcpp that I blogged about a few days ago required a few small changes in RQuantLib. Not really much more that prefixing std:: in a number of variable declarations and a few member function calls -- so this is definitely a minor maintenance release. New source and binary packages have already been pushed to CRAN and Debian.

1 March 2009

Dirk Eddelbuettel: Rcpp 0.6.4

A new maintenance version of Rcpp (now at 0.6.4) was just pushed to CRAN and has been uploaded to Debian. Rcpp is a set of utility classes that provide interfaces for transferring the major R data types to C++ and back which makes it easier to extend R with dynamically loadable code written in C or C++. This version changes how use the std namespace: all usage is now properly prefixed. Likewise, we now define R_NO_REMAP to not let R define utility functions as length() or error() which occassionally creates trouble with other include files -- so now use the more explicit forms Rf_length(), Rf_error() etc. Also, starting from this release, C++ class documentation created by Doxygen is included; it can also be seen from my box as both browsable html and a pdf file. Lastly, this version also adds a minor correction to the Windows build (spotted by Uwe and Simon).

26 February 2009

Dirk Eddelbuettel: Review of 'Applied Econometrics in R' in JSS

A short review of Kleiber and Zeileis' excellent Applied Econometrics with R is now out at the (online) Journal of Statistical Software.

24 February 2009

Dirk Eddelbuettel: R/Finance conference in Chicago in April: Registration now open

Regarding the aforementioned R/Finance conference that will take place at the end of April here in Chicago, we announced earlier today that the conference website is now available. It provides information about the program, speakers and other details as well as a link to registration details. See you in Chicago in April!

13 February 2009

Dirk Eddelbuettel: New project: RInside

A few days ago, I started a new project called RInside by uploading a few files to a new SVN repo at R-Forge. RInside makes it easy to embed R into your own C++ application by hiding the nitty gritty of initializing an R interpreter behind a simple abstraction. More information is at a (currently pretty simple) RInside page, and you may want to look at the related Rcpp and possibly littler projects. The former is helpful for data exchange, and the latter provided my first real use of R embedding which in some ways also lead to RInside.

4 February 2009

Dirk Eddelbuettel: Correct Datetime / POSIXct behaviour for R and kdb+

We have started to look into kdb+ as a possible high-performance column-store backend. Kx offers free trials -- and so I have played with this for a day or two, both the general system, data loads and dumps and in particular with the interface to R, Based on the few files (one C source with interface code, one R file to access the C code, one object file to link against, one header file and a simple Makefile), it took just a couple of minutes to turn this into a proper CRAN-style R package. Anyway, the reason for this post was that the R / kdb+ glue code works well ... but not for datetimes. I really like to be able to pass date/time objects natively between systems as easily as, say, numbers or strings (and see e.g. my Rcpp package for doing this with R and C++) and I was a bit annoyed when the millisecond timestamps didn't move smoothly. Turns out that the basic converter function in the code had a number of problems: it converted to integer, only covered a single scalar rather than vectorised mode, and erroneously reduced a reference count. A better version, in my view, is as follows:
static SEXP from_datetime_kobject(K x) 
 
	SEXP result;
	int i, length = x->n;
	if (scalar(x))  
		result = PROTECT(allocVector(REALSXP, 1));
		REAL(result)[0] = (kF(x)[0] + 10957) * 86400;
	  else  
		result = PROTECT(allocVector(REALSXP, length));
		for(i = 0; i < length; i++)  
		    	REAL(result)[i] = (kF(x)[i] + 10957) * 86400;
		 
	 
	SEXP datetimeclass = PROTECT(allocVector(STRSXP,2));
	SET_STRING_ELT(datetimeclass, 0, mkChar("POSIXt"));
	SET_STRING_ELT(datetimeclass, 1, mkChar("POSIXct"));
	setAttrib(result, R_ClassSymbol, datetimeclass);
	UNPROTECT(2); 
        return result; 
 
This deals with vectors as well as scalars, converts Kdb's 'fractional days since Jan 1, 2000' to the Unix standard of seconds since the epoch -- including the R extension of fractional seconds -- and as importantly, sets the class attributes to POSIXt POSIXct as needed by R. With that, a simple select max datetime from table does just that, and vectors of timestamped records of trades or quotes or whatever also come with proper POSIXct behaviour into R. Note that it needs TZ to be set to UTC, though, or you get a timezone offset you may not want.

31 January 2009

Dirk Eddelbuettel: State-of-the-art in parallel computing with R: New paper

A few weeks ago, we finished a paper that surveys the current state of parallel computing with R. The paper was lead by Markus Schmidberger and written while he was visiting the Fred Hutchinson Cancer Research Center in Seattle. The co-authors are Martin Morgan, myself, Hao Yu, Luke Tierney and Ulrich Mansmann. The paper is now available as a technical report from LMU Munich via open access, and also from my papers page.

25 January 2009

Dirk Eddelbuettel: New CRAN Task View on HPC

A while back, I suggested to Achim to add a new CRAN Task View for High Performance Computing with R. And as of a day or two ago, we now have the new CRAN Task View for High Performance Computing with R providing an overview about available packages, grouped thematically, with a focus on the various parallel computing application. I have already received a few great comments that even lead to an entire new section on applications. Keep'em coming!

15 January 2009

Dirk Eddelbuettel: littler 0.1.2

Version 0.1.2 of r (pronounced littler) was just rolled up. This version adds two new command-line switches: As usual, our code in our svn archive, on my r page, and in the local directory here. A fresh package is in Debian's incoming queue, and Jeff's littler page at Vanderbilt should reflect the new release soon too.

9 January 2009

Dirk Eddelbuettel: Rcpp 0.6.3

I just pushed Rcpp 0.6.3 out to CRAN and Debian. This version adds a fix to the OS X installation (thanks to Simon Urbanek), adds some 'view-only' classes for R vectors, matrices and string vectors (kindly suggested/provided by David Reiss) as well two shorter helper functions to derive compilation and linker flags for packages using Rcpp.

Next.

Previous.