September 2011

Implementation of the CDC Growth Charts in R

September 17, 2011 | Todos Logos

I implemented in R a function to re-create the CDC Growth Chart, according to the data provided by the CDC.In order to use this function, you need to download the .rar file available at this megaupload link.Mirror: mediafire link.Then unrar the file, a... [Read more...]

littler 0.1.5

September 17, 2011 | Thinking inside the box

Brown-bag release time for littler. One of the minor cleanups in the 0.1.4 release from Thursday actually introduced a nasty little bug as you can't call Rf_KillAllDevices() when you do not have any graphics device. Doh. So with apologies for the l... [Read more...]

UK R Courses – 2012

September 17, 2011 | csgillespie

The School of Mathematics & Statistics at Newcastle University (UK), are again running some R courses. In January, 2012, we will run: January 16th: Introduction to R; January 17th: Programming with R; January 18th & 19th: Advanced graphics with R. The courses aren’t aimed at teaching statistics, rather they aim to go ... [Read more...]

Introduction to Beamer

September 17, 2011 | MK

A friend of mine, who is quite smart by the way (she is a PhD. student in Physics at Cambridge), recently asked me for some help with Beamer. Well most of my knowledge and code came from Utkarsh when I had started about a year ago. Initially, I ha...
[Read more...]

Elements of Bayesian Econometrics

September 16, 2011 | Matt Bogard

 posterior = (likelihood x prior) / integrated likelihoodThe combination of a prior distribution and a likelihood function is utilized to produce a posterior distribution.  Incorporating information from both the prior distribution and the likelihood function leads to a reduction in variance and an improved estimator. As n→ ∞ the likelihood centers over the ...
[Read more...]

R in the insurance industry

September 16, 2011 | mages

Let's talk about R in the insurance industry today.  David Smith's blog entry reminded me about our poster at the R user conference in Warwick in August 2011:Using R in InsuranceWe presented examples on how R can be used in the insu...
[Read more...]

Beta and expected returns

September 16, 2011 | Pat

Some pictures to explore the reality of the theory that stocks with higher beta should have higher expected returns. Figure 2 of “The effect of beta equal 1″ shows the return-beta relationship as downward sloping.  That’s a sample of size 1.  In this post we add six more datapoints. Data The exact ... [Read more...]

A multidimensional “which” function

September 16, 2011 | mark

update Henrik Bengtsson commented that which(x, arr.ind=TRUE) gives the same result, rendering the blog below academic (thanks for the comment!). So, for academic interest, I'll leave it. In my defense, I implemented this kind of functionality in C some time … Continue reading → [Read more...]

A multidimensional "which" function

September 16, 2011 | Mark van der Loo

The well-known which function accepts a logical vector and returns the indices where its value equals TRUE. Actually, which also accepts matrices or multidimensional arrays. Internally, R uses a single index to run through such two- or higher-dimension...
[Read more...]

Always put comments in your code!

September 16, 2011 | rmkrug

I have a paper which I wrote some years ago, which has not been finished, and which should be accompanied by an R package. So far nothing special, but at that time, I was only at the beginning of my affair with R, and so I made several mistakes (OK – ... [Read more...]

Soil Series Query for SoilWeb

September 16, 2011 | dylan

A map depicting the spatial distribution of a given soil series can be very useful when working on a new soil survey, updating an old one, or searching for specific soil characteristics. We have recently added a soil series query facility to SoilWeb, w... [Read more...]

Simulation studies in R – Using all cores and other tips

September 16, 2011 | gerhi

After working more seriously with simulations I noticed some updates were necessary to my previous setup. Most notably are the following three: It is very handy to explicitly call the different scenarios instead of using nested loops Storing intermediate results in single files obliviates the need to rerun an almost ... [Read more...]

Beeswarm Plot with ggplot2

September 16, 2011 | denishaine

A colleague showed me results of his study project with beeswarm plots made by GraphPad. I was wondering if it could be implemented in R and more specifically with ggplot2. There is a R package allowing to draw such graphs, the beeswarm package (beeswa... [Read more...]

Performance with ggplot2

September 16, 2011 | klr

Now after Reporting Good Enough to Share, let’s use ggplot2 and PerformanceAnalytics to turn this into this From TimelyPortfolio I have been notified that the colors aren’t great.  How does everyone like this? R code (click to download)...
[Read more...]
1 3 4 5 6 7 10

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)