Monthly Archives: March 2013

RcppArmadillo 0.3.800.1

March 12, 2013
By

Conrad released a first bug-fix release 3.800.1 of Armadillo earlier today. This has been wrapped up in release 0.3.800.1 of RcppArmadillo as usual. This release also contains a very nice function sample() (contributed by Christian Gunning) which p...

Read more »

A map of worldwide email traffic, created with R

March 12, 2013
By
A map of worldwide email traffic, created with R

The Washing Post reports that by analyzing more than 10 million emails sent through the Yahoo! Mail service in 2012, a team of researchers used the R language to create a map of countries whose citizens email each other most frequently: The chart above shows the top 1000 country-country pairs by email frequency, arranged in a clustered network using...

Read more »

Distrust of R

March 12, 2013
By

I guess I've been living in a bubble for a bit, but apparently there are a lot of people who still mistrust R. I got asked this week why I used R (and, specifically, the package rpart) to generate classification and regression trees instead of SAS Ente...

Read more »

R to Latex packages: Coverage

March 12, 2013
By

There are now quite a few R packages to turn cross-tables and fitted models into nicely formatted latex. In a previous post I showed how to use one of them to display regression tables on the fly. In this post I summarise what types of R object each of the major packages can deal with.

Read more »

AQP News and Updates

March 12, 2013
By

The AQP family of R packages has seen a lot of development over the last 3 months. Some of the highlights include:HTML manual pages with syntax-highlighting and figures, c/o knitr new vignettes: "dealing with bad data", gridded SSURGO (gSSURGO) demo,...

Read more »

Job advert

March 12, 2013
By
Job advert

We finally got around to prepare everything we needed to advertise the position which will be available in the MRC grant we've been awarded last year.The project will run for 30 months and we're looking for a post-doctoral candidate to work on the Rese...

Read more »

reports 0.1.2 Released

March 12, 2013
By
reports 0.1.2 Released

I’m very pleased to announce the release of reports : An R package to assist in the workflow of writing academic articles and other reports. This is the first CRAN release of reports: http://cran.r-project.org/web/packages/reports/index.html The reports package assists in writing … Continue reading →

Read more »

Third Milano R net meeting to be held on April 18, 2013

March 12, 2013
By

Third Milano R net meeting April 18, 2013 @ 6.00 PM Fiori Oscuri Bistrot & Bar Via Fiori Oscuri, 3 Milano Further details will be published shortly. Stay connected!

Read more »

How to use optim in R

March 12, 2013
By
How to use optim in R

A friend of mine asked me the other day how she could use the function optim in R to fit data. Of course there are functions for fitting data in R and I wrote about this earlier. However, she wanted to understand how to do this from scratch using optim. The function optim provides algorithms for general...

Read more »

Generating a multivariate gaussian distribution using RcppArmadillo

March 12, 2013
By
Generating a multivariate gaussian distribution using RcppArmadillo

There are many ways to simulate a multivariate gaussian distribution assuming that you can simulate from independent univariate normal distributions. One of the most popular method is based on the Cholesky decomposition. Let’s see how Rcpp and Armadillo perform on this task. #include <RcppArmadillo.h> // ]using namespace Rcpp;// ] arma::mat mvrnormArma(int n, arma::vec mu, arma::mat sigma) { int ncols...

Read more »