Posts Tagged ‘ R Language ’

How to Start Using (pgf)Sweave in LyX in One Minute

October 30, 2010
By

regor Gorjanc published an interesting article “Using Sweave with LyX” in R News in 2008, which (I believe) makes it much easier to use Sweave. I use command-line tools a lot every day, but I am still “GUI-addicted”. (I don’t want to comment more about Microsoft Word here.) LyX is a somewhat WYSIWYG tool based

Read more »

Ideas for World Statistics Day

October 19, 2010
By
Ideas for World Statistics Day

World Statistics Day is 2010 October 20.  If you work with data (or you should), then you are a statistician and this is a day for you. Try the Monte Hall problem on your mother. Start reading Bad Science.  I mean the book, but here’s the blog. Take a step towards breaking your spreadsheet addiction … Continue reading...

Read more »

American TV does cointegration

October 18, 2010
By
American TV does cointegration

Fringe provides an excellent example of cointegration.  This is a television show in which there are two adjacent universes.  The universes are almost alike but not exactly. Now, everyone knows that history is chaotic.  If a butterfly does an extra flap of its wings, then that difference spreads out to change subsequent events everywhere.  But … Continue reading...

Read more »

On the Gory Loops in R

October 17, 2010
By

his blog post is mainly for Stat 579 students on the homework for week 7, since I received too many “gory” loops in the homework submissions and I think it would help a bit to write my thoughts on R loops for beginners. The immortal motto for newbies in programming is: If you want to

Read more »

A tale of two returns

October 4, 2010
By
A tale of two returns

It was the best of times, it was the worst of times. As you may have guessed, this is a mashup of a novel by Charles Dickens and an explanation of financial returns. The key plot element of A Tale of Two Cities is that there are two men, Charles Darnay and Sydney Carton, who … Continue reading...

Read more »

Physical economy v social economy

September 17, 2010
By
Physical economy v social economy

There’s a hole in the bucket of traditional economics. Homo socialus seems to be on the rise, and homo economicus is getting harder to find. Vulcanism has become evident in the R community over the last several days.  One of the visible eruptions has been over money.  This resulted in a blog post by Tal … Continue reading...

Read more »

SyntaxHighlighter Brush for the R Language

September 11, 2010
By

al Galili requested in the R-help mailing list for a SyntaxHighlighter brush for the R language, so that WordPress users can highlight their R code easily. I promised to contribute a few minutes on this task, and here is the result: /** * Author: Yihui Xie * URL: http://yihui.name/en/2010/09/syntaxhighlighter-brush-for-the-r-language * License: GPL-2 | GPL-3 */

Read more »

What the hell is a variance matrix?

August 25, 2010
By
What the hell is a variance matrix?

When I first came to finance, I kept hearing about “risk models”. I wondered, “What the hell is a risk model?” Of course, I didn’t say this out loud — that would have given the game away.  My wife has strict instructions that she is to be the only one to know that I’m an … Continue reading...

Read more »

Auto-completion in Notepad++ for R Script

August 14, 2010
By
Auto-completion in Notepad++ for R Script

Auto-completion is fancy in a text editor. Notepad++ does not support auto-completion for the R language, so I spent a couple of hours on creating such an XML file to support R: Put it under ‘plugins/APIs‘ in the installation directory of Notepad++ (you can see several other XML files there supporting different languages such as

Read more »

My Talk on Animations at useR! 2010 (NIST, Gaithersburg)

July 21, 2010
By
My Talk on Animations at useR! 2010 (NIST, Gaithersburg)

As every useR knows, the useR! 2010 conference is being held at NIST in Gaithersburg these days. I have just finished my talk on the R package animation this afternoon. Here are my slides and R code for those who are interested: Have fun, even if you are a PhD! Related Postsalphahull: an R Package

Read more »