March 2015

rud.is » R 2015-03-30 13:32:08

March 30, 2015 | hrbrmstr

Over on The DO Loop, @RickWicklin does a nice job visualizing the causes of airline crashes in SAS using a mosaic plot. More often than not, I find mosaic plots can be a bit difficult to grok, but Rick’s use was spot on and I believe it shows the ...
[Read more...]

The most common R error messages

March 30, 2015 | David Smith

R has something of a reputation for generating, shall we say, obscure error messages like this: Error in model.frame.default(formula = y ~ female + DNC + SE_region + : could not find function "function (object, ...) nobject" One tip for dealing with error messages is to ignore everything between "Error in" and the ... [Read more...]

Need for Processing Speed: data.table

March 30, 2015 | tobias

Monday 30 March 2015 - 15:05 The first time I discovered data.table it felt like magic. I was waiting on a process that was projected to take the better part of an afternoon. In the meantime, I followed the data.table tutorial, rewrote my code using the data.table structure, and fully ... [Read more...]

Autoregressive Conditional Poisson Model – I

March 29, 2015 | statcompute

Modeling the time series of count outcome is of interest in the operational risk while forecasting the frequency of losses. Below is an example showing how to estimate a simple ACP(1, 1) model, e.g. Autoregressive Conditional Poisson, without covariates with ACP package. [Read more...]

intuition beyond a Beta property

March 29, 2015 | xi'an

A self-study question on X validated exposed an interesting property of the Beta distribution: If x is B(n,m) and y is B(n+½,m) then √xy is B(2n,2m) While this can presumably be established by a mere change of variables, I could not carry the derivation ...
[Read more...]

Segmenting F1 Qualifying Session Laptimes

March 29, 2015 | Tony Hirst

I’ve started scraping some FIA timing sheets again, including practice and qualifying session laptimes. One of the things I’d like to do is explore various ways of looking at the qualifying session laptimes, which means identifying which qualifying session each laptime falls into: For looking at session utilisation ...
[Read more...]

Space Launch Sites over Time

March 29, 2015 | Wingfeet

Continuing from last weeks post, I am now looking at space launch sites.DataData are from the main table. In addition, this sites table was manually browsed for interpretation of abbreviations.List of most important sitesJust by running counts the most... [Read more...]

Makefiles and RMarkdown

March 28, 2015 | PirateGrunt

Quite some time ago (October 2013, according to Amazon), I bought a copy of “Reproducible Research with R and RStudio” by Christopher Gandrud. And it was awesome. Since then, I’ve been using knitr and RMarkdown quite a lot. However, until recently, I never bothered with a makefile. At the time, ... [Read more...]

What we’re reading — and how it ties us together

March 28, 2015 | Michael Levy - Rstats

tl;dr: Network of an interdisciplinary environmental social science lab as tied together by the journals we read. A few key journals, especially Social Networks, hold us together. R code follows. The Center for Environmental Policy and Behavior, my grad lab, is remarkably interdisciplinary. For some sense of our breadth, ... [Read more...]

Parallel R with BatchJobs

March 28, 2015 | Gord Sissons

Parallelizing R with BatchJobs – An example using k-means Gord Sissons, Feng Li Many simulations in R are long running. Analysis of statistical algorithms can generate workloads that run for hours if not days tying up a single computer. Given the amount of time R programmers can spend waiting for results, ... [Read more...]

R style default plot for Pandas DataFrame

March 28, 2015 | Corey Chivers

The default plot method for dataframes in R is to show each numeric variable in a pair-wise scatter plot. I find this to be a really useful first look at dataset, both to see correlations and joint distributions between variables, but also to quickly diagnose potential strangeness like bands of ... [Read more...]
1 2 3 4 13

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)