998 search results for "latex"

Produce Authentic Math Formulas in R Graphics

April 30, 2011
By
Produce Authentic Math Formulas in R Graphics

I remember a few weeks ago, there was a challenge in the R-help list to make the prime symbol in R graphics. In LaTeX, we simply write $X'$ or $X^\prime$. R has a rough support for math expressions (see demo(plotmath)) and they are certainly unsatisfactory for LaTeX users. In fact we can write native LaTeX

Read more »

Produce Authentic Math Formulas in R Graphics

April 30, 2011
By
Produce Authentic Math Formulas in R Graphics

I remember a few weeks ago, there was a challenge in the R-help list to make the prime symbol in R graphics. In LaTeX, we simply write $X'$ or $X^\prime$. R has a rough support for math expressions (see demo(plotmath)) and they are certainly unsatisfac...

Read more »

Export a Table Created by R to a TeX File

April 17, 2011
By
Export a Table Created by R to a TeX File

Producing tables in LaTeX might be a difficult task as we can not just copy and paste a table in the editor; we have to write all the numbers and other codes. But with the help of xtable package of R it is possible to produce all the necessary codes for producing table in LaTeX and also possible to...

Read more »

Export a Table Created by R to a TeX File

April 17, 2011
By
Export a Table Created by R to a TeX File

I am using xtable package of R to produce all the necessary codes for producing table suitable for LaTeX, and also discussing how to export the codes to a tex file. Producing tables in LaTeX might be a difficult task as we can not just copy and paste a table in the editor; we have to write all the...

Read more »

Introduction to Cointegration and Pairs Trading

April 15, 2011
By
Introduction to Cointegration and Pairs Trading

Introduction Suppose you see two drunks (i.e., two random walks) wandering around. The drunks don’t know each other (they’re independent), so there’s no meaningful relationship between their paths. But suppose instead you have a drunk walking with her dog. This … Continue reading →

Read more »

Graph Bisection in R

April 14, 2011
By
Graph Bisection in R

Recently I had to partition a set of SNPs into a training set and a test set. Making a random split would not do: both sets would likely contain very similar SNPs due to linkage disequilibrium (LD), making them non-independent. … Continue reading →

Read more »

Using tikzDevice with Sweave in R 2.13

April 12, 2011
By

R 2.13 introduces an option to specify a custom graphics device in an Sweave code chunk. This is really cool and allows you to use tikzDevice output like pgfSweave does. In an pinch, say when you dont have access to any non-core packages, you can use tikzDevice output with the regular Sweave driver (RweaveLatex) more

Read more »

Article about plyr published in JSS, and the citation was added to the new plyr (version 1.5)

April 11, 2011
By
Article about plyr published in JSS, and the citation was added to the new plyr (version 1.5)

The plyr package (by Hadley Wickham) is one of the few R packages for which I can claim to have used for all of my statistical projects. So whenever a new version of plyr comes out I tend to be excited about it (as was when version 1.2 came out with support for parallel processing)

Read more »

A Simple Instrumental Variables Problem

March 29, 2011
By
A Simple Instrumental Variables Problem

When working with labor economics, we often run into issues with selection on variables of interest. Regressing earnings on years of education to estimate the human capital earnings function makes sense at first blush until we imagine that education is … Continue reading →

Read more »

GUIs for R

March 28, 2011
By

A recent post listed at R Bloggers (http://www.r-bloggers.com/r-guis-which-one-fits-you/) made some erroneous statements about R Commander. Here is a revised description of R Commander with some issues addressed from the earlier blog:R Commander works ...

Read more »