Monthly Archives: June 2014

Example 2014.8: Estimate power for an interaction, by simulation

June 30, 2014
By
Example 2014.8: Estimate power for an interaction, by simulation

In our last entry, we demonstrated how to simulate data from a logistic regression with an interaction between a dichotomous and a continuous covariate. In this entry we show how to use the simulation to estimate the power to detect that interaction. ...

Read more »

R/Finance 2014 Review

June 30, 2014
By

It's been more than a month since R/Finance 2014, and my job has finally slowed down enough to allow me to write down my thoughts (though I'm writing this over two days during my train to and from Chicago).The comments below are based on my personal ex...

Read more »

Submissions in the DataVis contest at useR!2014

June 30, 2014
By

Wonder how submissions to the DataVis contest at useR!2014 (see contest webpage) look like? There are 8 submissions in the track 1 (schools matter) and 10 submissions in the track 2 (inequalities in academic achievement). You can see all submissions (w...

Read more »

Presentations of the seventh Torino R net meeting – 27 Mar 2014

June 30, 2014
By
Presentations of the seventh Torino R net meeting – 27 Mar 2014

welcome and presentation (download 0,1MB), Torino R net organisers; Processing and analysis methods for DNA methylation array data (download 1,4 MB), Giovanni Fiorito, Complex Systems for Life Sciences, University of Turin; Temporal Dominance of Sensations (TDS) data analysis using R (download 4,8 MB), Silvia … Continue reading →

Read more »

R/Rmetrics in Paris [alas!]

June 29, 2014
By
R/Rmetrics in Paris [alas!]

Today I gave a talk on Bayesian model choice in a fabulous 13th Century former monastery in the Latin Quarter of Paris… It is the Collège des Bernardins, close to Jussieu and Collège de France, unbelievably hidden to the point I was not aware of its existence despite having studied and worked in Jussieu since

Read more »

The TaoTeProgramming R package

June 29, 2014
By
The TaoTeProgramming R package

I’d like to do a song of great social and political import. The code that created the illustrations in Tao Te Programming is now available as the TaoTeProgramming package on CRAN. The sea is just flat hills And they are both just smooth mountains. The package contains just over 1000 lines of code.  More than The post

Read more »

stone flakes IV

June 29, 2014
By
stone flakes IV

In this post I want to try something new, a causal graphical model. The aim here is just as much to get myself a feel what these things do as to understand how the stone flakes data fit together. DataData are stone flakes data which I analyzed previous...

Read more »

Transforming a Matrix in Parallel using RcppParallel

June 28, 2014
By
Transforming a Matrix in Parallel using RcppParallel

The RcppParallel package includes high level functions for doing parallel programming with Rcpp. For example, the parallelFor function can be used to convert the work of a standard serial “for” loop into a parallel one. This article describes using RcppParallel to transform an R matrix in parallel. Serial Version First a serial version of the matrix transformation. We take the square root of each...

Read more »

Summing a Vector in Parallel with RcppParallel

June 28, 2014
By
Summing a Vector in Parallel with RcppParallel

The RcppParallel package includes high level functions for doing parallel programming with Rcpp. For example, the parallelReduce function can be used aggreggate values from a set of inputs in parallel. This article describes using RcppParallel to sum an R vector. Serial Version First a serial version of computing the sum of a vector. For this we use a simple call to the STL std::accumulate function: #include...

Read more »

Search and draw cities on a map using OpenStreetMap and R

June 28, 2014
By
Search and draw cities on a map using OpenStreetMap and R

(this tutorial can also by used dummies in geography...) This tutorial explains how to build a map from a matrix containing city names and corresponding country codes, as well as, eventually a frequency attached to each country. The script first find thanks to the nice open projet Open Street Map the coordinates of the corresponding

Read more »