Monthly Archives: January 2013

Function for Generating LaTeX Tables with Decimal Aligned Numbers

January 4, 2013
By
Function for Generating LaTeX Tables with Decimal Aligned Numbers

The xtable package is tremendously useful for generating LaTeX tables from data frames. It is also pretty easy to customize the output to handle some special cases of LaTeX formatting. The xtable.decimal function will create a LaTeX table where numeric columns will be vertically aligned on the decimal point. In addition to specifying the LaTeX alignment code it...

Read more »

A new version of analogue for a new year

January 4, 2013
By

Yesterday I rolled up a new version (0.10-0) of analogue, my R package for analysing palaeoecological data. It is now available from CRAN. There were lots of incremental changes to Stratiplot() to improve the quality of the stratigraphic diagrams produced and fix several annoying bugs. Also the definition of the standard error of MAT reconstructions was fixed; it...

Read more »

R in 2012: Shamelessly Stealing the New Years’ Python Meme

January 3, 2013
By
R in 2012: Shamelessly Stealing the New Years’ Python Meme

In a previous post I reviewed my interactions with Python the programming language and the community following the New Years’ Python Meme that’s making the rounds on Twitter and the like. And now, I’m shamelessly stealing it to look at how I used R in 2012. I figure I should probably let the #2012pythonmeme stay Python-only,

Read more »

Tooltips with R and jQuery

January 3, 2013
By
Tooltips with R and jQuery

Tooltips appear frequently in webpages, usually associated with JavaScript code. There are several Javascript scripts and libraries to populate your …Continuar leyendo »

Read more »

Initialize yourself

January 3, 2013
By

(This article was first published on Just Another R Blog, and kindly contributed to R-bloggers) To leave a comment for the author, please follow the link and comment on his blog: Just Another R Blog. R-bloggers.com offers daily e-mail updates about R news and tutorials on topics such as: visualization (ggplot2, Boxplots, maps, animation), programming (RStudio, Sweave, LaTeX, SQL,...

Read more »

Computers are Machines

January 3, 2013
By

When people try out Julia for the first time, many of them are worried by the following example: 1 2 3 4 5 6 7 julia> factorial(n) = n == 0 ? 1 : n * factorial(n - 1)   julia> factorial(20) 2432902008176640000   julia> factorial(21) -4249290049419214848 If you’re not familiar with computer architecture, this

Read more »

What your choice of statistics software says about you

January 3, 2013
By

Sean Taylor, a PhD candidate in Information Systems at NYU’s Stern School of Business, describes the "Statistics Software Signal" and his observation that some software packages are correlated with bad science. While, I don't agree with all of his points (some fine analyses have been done with Stata, for example), I thought this was an interesting take on the...

Read more »

Accessing environments

January 3, 2013
By

Extending R with C++ code by using Rcpp typically involves function calls by leveraging the existing .Call() interface of the R API. Passing values back and forth is then done in manner similar to programming with functions. However, on occassion it i...

Read more »

The GARCH-DCC Model and 2-stage DCC(MVT) estimation.

January 2, 2013
By
The GARCH-DCC Model and 2-stage DCC(MVT) estimation.

This short demonstration illustrates the use of the DCC model and its methods using the rmgarch package, and in particular an alternative method for 2-stage DCC estimation in the presence of the MVT distribution shape (nuisance) parameter. The theoretical background and representation of the model is detailed in the package’s vignette. The dataset and period

Read more »

Genetic Algorithms with gaoptim package

January 2, 2013
By

Two days ago i just submitted my first R package: gaoptim. For my surprise, the next day it was already living on CRAN. In this post i want to show you how to use gaoptim to perform a simple function maximization. This same task could be accomplished ...

Read more »