1723 search results for "time series"

Setting graph margins in R using the par() function and lots of cow milk

June 30, 2010
By
Setting graph margins in R using the par() function and lots of cow milk

It is fairly straightforward to set the margins of a graph in R by calling the par() function with the mar (for margin!) argument. For example, par(mar=c(5.1,4.1,4.1,2.1) sets the bottom, left, top and right margins respectively of the plot region in number of lines of text. Another way is by specifying the margins in inches

Read more »

Analyze Gold Demand and Investments using R

June 29, 2010
By
Analyze Gold Demand and Investments using R

After the recent foray into stock analysis using quantmod, I thought it worthwhile to mention that the library can be used to analyze a wide variety of investments, including precious metals.  It is also worthwhile to mention that there are other ...

Read more »

Stock Analysis using R

June 26, 2010
By
Stock Analysis using R

Want to do some quick, in depth technical analysis of Apple stock price using R? Theres a package for that!The Quantmod package allows you to develop, testing, and deploy of statistically based trading models.  It provides the infrastructure for d...

Read more »

Estimating Probability of Drawdown

June 19, 2010
By
Estimating Probability of Drawdown

I've shown several examples of how to use LSPM's probDrawdown function as a constraint when optimizing a leverage space portfolio.  Those posts implicitly assume the probDrawdown function produces an accurate estimate of actual drawdo...

Read more »

Chart the U.S. Gross National Product with the Federal Reserve API

June 17, 2010
By
Chart the U.S. Gross National Product with the Federal Reserve API

The Federal Reserve of St. Louis has an amazing amount of economic data available through their API. You need to apply for an API key, and once you have been approved you include your API key as URL parameter to access your data. api_key='YOUR API KE...

Read more »

Learning R

June 17, 2010
By

When R is brought up as a possibility for doing statistics or data mining or any sort of predictive analytics among non R users, someone will invariably point out that R has a “steep learning curve”, and the response among those gathered usually includes a significant amount of head nodding. Even those who have put in heroic efforts to...

Read more »

Comparing standard R with Revoutions for performance

June 17, 2010
By
Comparing standard R with Revoutions for performance

Following on from my previous post about improving performance of R by linking with optimized linear algebra libraries, I thought it would be useful to try out the five benchmarks Revolutions Analytics have on their Revolutionary Performance pages.

Read more »

Comparing standard R with Revoutions for performance

June 17, 2010
By
Comparing standard R with Revoutions for performance

Following on from my previous post about improving performance of R by linking with optimized linear algebra libraries, I thought it would be useful to try out the five benchmarks Revolutions Analytics have on their Revolutionary Performance pages.

Read more »

Statistical Analysis and Visualization of the Drug War in Mexico

June 15, 2010
By
Statistical Analysis and Visualization of the Drug War in Mexico

On December 11, 2006 Felipe Calderon, as the first significant act of his presidency, sent the army to his home state of Michoacan. He claimed that it was to regain control of territories lost to the drug cartels, and indeed, a new cartel had started operating in Michocan. But the fact that he won the election by the slim margin of...

Read more »

Statistical Analysis and Visualization of the Drug War in Mexico

June 15, 2010
By
Statistical Analysis and Visualization of the Drug War in Mexico

On December 11, 2006 Felipe Calderon, as the first significant act of his presidency, sent the army to his home state of Michoacan. He claimed that it was to regain control of territories lost to the drug cartels, and indeed, a new cartel had started operating in Michocan. But the fact that he won the election by the slim margin of...

Read more »