Monthly Archives: March 2010

A von Mises variate…

March 25, 2010
By
A von Mises variate…

Inspired from a mail that came along the previous random generation post the following question rised : How to draw random variates from the Von Mises distribution? First of all let’s check the pdf of the probability rule, it is , for . Ok, I admit that Bessels functions can be a bit frightening, but

Read more »

Create odf, pdf and html report from a single Sweave document

March 25, 2010
By

A lot of us know about Sweave and Latex and they work very well in creating elegant dynamic reports from R computation. However, sometimes we would like to also produce a word processing document for a colleague or a html version of the same report. Now there are tools for producing these like odfWeave. But

Read more »

NetLogo & R Extension

March 25, 2010
By
NetLogo & R Extension

I'm really a heavy user of R and was so much before starting to do any agent based models. So the first thing I was looking in any software package for ABM was some automated link to R (much like spgrass6 for GRASS and R for GIS). I thought  Repast Simphony was the way to go, since...

Read more »

NetLogo & R Extension

March 25, 2010
By
NetLogo & R Extension

I'm really a heavy user of R and was so much before starting to do any agent based models. So the first thing I was looking in any software package for ABM was some automated link to R (much like spgrass6 for GRASS and R for GIS).  I thought  Repast Simphony was the way to go, since...

Read more »

Matlab and R (getting started)

March 24, 2010
By

Matlab and R are two popular languages for data analysis and visualization. The similarity between the two languages is high. Both are interpreted languages that run in a shell-like environment (while also allowing to run scripts or functions written off-line). Both tend to be slow if your code contains many loops but are fast when

Read more »

Meteorologist Misreads Arctic Sea Ice Extent Trends

March 24, 2010
By
Meteorologist Misreads Arctic Sea Ice Extent Trends

Meteorologist Joe Bastardi recently made a video asking “…how the heck does it get this warm and yet we are back to normal global sea ice extent in the Northern Hemisphere?”. In this post I show how Joe misread the … Continue reading →

Read more »

Modified Donchian Band Trend Follower using R, Quantmod, TTR -Part 2: Parameter Sweep Sensitivity over long run

March 24, 2010
By
Modified Donchian Band Trend Follower using R, Quantmod, TTR  -Part 2: Parameter Sweep Sensitivity over long run

Here is a small update to the Donchian Channel type system I displayed in the last post.Fig 1. Sensitivity of Net Combined L/S Gain to parameter n.Using the S&P500 index as a proxy for the market, a simulation was run over the lifetime of the index. No...

Read more »

Create odf, pdf and html report from a single Sweave document

March 24, 2010
By

A lot of us know about Sweave and Latex and they work very well in creating elegant dynamic reports from R computation. However, sometimes we would like to also produce a word processing document for a colleague or a html version of the same report. Now there are tools for producing these like odfWeave. But wouldn't it be...

Read more »

Create odf, pdf and html report from a single Sweave document

March 24, 2010
By

A lot of us know about Sweave and Latex and they work very well in creating elegant dynamic reports from R computation. However, sometimes we would like to also produce a word processing document for a colleague or a html version of the same report. Now there are tools for producing these like odfWeave. But wouldn't it be...

Read more »

Using vectors to customize placement of tick marks and labels on a plot

March 24, 2010
By
Using vectors to customize placement of tick marks and labels on a plot

OK, let's say you want to create a plot and you need an easy way to specify where along the scale your tick marks and labels land, as opposed to having R just decide itself. An easy way to do that is to create a vector and assign the axis characteristi...

Read more »