August 2009

Formatting Decimals in Texts with R

August 30, 2009 | Yihui Xie

anping Chen raised a question in the Chinese COS forum on the output of Eviews: how to (re)format the decimal coefficients in equations as text output? For example, we want to round the numbers in CC = 16.5547557654 + 0.0173022117998*PP + 0.216234040485 * PP(-1) + 0.810182697599 * (WP + WG) to the 3rd decimal places. [...] [Read more...]

Counterintuitive Results in Flipping Coins

August 28, 2009 | Yihui Xie

oin-flipping is a rather old topic in probability theory, so most of us think we know very well about it, however, the other day I saw a question about this old topic (in David Smith’s REvolution?) which was beyond me expectation: how many times do we need to flip ... [Read more...]

Learning R 2009-08-28 13:11:00

August 28, 2009 | Jim

fydeficit.1projectedpng("c:/data/deficit_color.png",height=480,width=480)plot(deficit.1~fy,ylim=c(-12,5),type="n",lwd=2,col="red",main="Federal budget deficit, 1990-2019",cex.lab=1.1,cex.axis=.75,xlab="Fiscal year",ylab="Deficit (% of GDP)")rect(1988,-15,1994,6,col="#FF9999",border=NA)rect(1994,-15,2002,6,col="#6699FF",border=NA)rect(2002,-15,2010,6,... [Read more...]

Combine R CMD build and junit

August 28, 2009 | romain francois

This is a post in the series Mixing R CMD build and ant. Previous posts have shown how to compile the java code that lives in the src directory of a package and how to document this code using javadoc. This post tackles the problem of unit testin... [Read more...]

A Fast Intro to PLYR for R

August 27, 2009 | JD Long

I’m not dead yet! Although it has been rumored that I am. The new job is going great and I’m thrilled to be with a new firm doing interesting work alongside smart people. It makes me seem smarter by simple association. There’s been a lot going on ...
[Read more...]

Using R and Bioconductor for sequence analysis

August 26, 2009 | Chris

Here's another quick R vignette, in case I pick this up later and need to remind myself where I got stuck. I was trying to use R for a bit of basic sequence analysis, with mixed results.First, install the BSgenome package, which is part of Bioconductor... [Read more...]

Applied Spatial Data Analysis with R

August 25, 2009 | James

I have just reviewed the book Applied Spatial Data Analysis with R which has been published in the September2009  issue of the Royal Statistical Society’s Significance magazine. Applied Spatial Data Analysis with R is an accessible text that demonstrates and explains the handling of spatial data using the R ... [Read more...]

Standardized Velvet Assembly Report

August 25, 2009 | Jeremy Leipzig

http://code.google.com/p/standardized-velvet-assembly-report/I finally got my Velvet Assembler report script up on google code. This "program" consists of some short scripts and a Sweave report designed to help Velvet users identify the optimal kmer an... [Read more...]

packages and CRANtastic

August 24, 2009 | Nick Horton

Additional functionality in R is added through packages, which consist of libraries of bundled functions, datasets, examples and help files that can be downloaded from CRAN (the Comprehensive R Archive Network). The function install.packages() or the w...
[Read more...]

R help on StackOverflow

August 23, 2009 | Rob J Hyndman

Ever since I began using R about ten years ago, the best place to find R help was on the R-help mailing list. But it is time-consuming searching through the archives trying to find something from a long time ago, and there is no way to sort out the goo... [Read more...]

Test cointegration with R

August 21, 2009 | Quantitative Finance Collector

Cointegrated pairs of securities are crucial for mean reversion trading portfolio construction, Play with cointegration has several good papers to start with. Should you want to test pairs of securities for cointegration using R, here is an excellent ... [Read more...]

No success yet, then more animations…

August 20, 2009 | the R user...

So I've been here dealing with the installation of a software that Yihui Xie suggested me to change the format of the animations displayed in R, she told me that all I needed to do was to go to http://imagemagick.org to download ImageMagick for my ope... [Read more...]

Simple logistic regression on qualitative dichotomic variables

August 20, 2009 | Todos Logos

In this post we will see briefly how to implement a logistic regression model if you have categorical variables, or qualitative, organized in double entry contingency tables. In this model the dependent variable (Y) and independent variable (X) are both dichotomies (or Bernoullian).In general, the probability that Y = 1 as ... [Read more...]
1 2 3

Never miss an update!
Subscribe to R-bloggers to receive
e-mails with the latest R posts.
(You will not see this message again.)

Click here to close (This popup will not appear again)