# R

Blogs on the R software.

## Feller’s shoes and Rasmus’ socks [well, Karl's actually...]

October 23, 2014
By

Yesterday, Rasmus Bååth [of puppies' fame!] posted a very nice blog using ABC to derive the posterior distribution of the total number of socks in the laundry when only pulling out orphan socks and no pair at all in the first eleven draws. Maybe not the most pressing issue for Bayesian inference in the era […]

## Why is my OS X Yosemite install taking so long?: an analysis

October 23, 2014
By

Why? Since the latest Mac OS X update, 10.10 "Yosemite", was released last Thursday, there have been complaints springing up online of the progress bar woefully underestimating the actual time to complete installation. More specifically, it appeared as if, for a certain group of people (myself included), the installer would stall out at "two minutes »more

## Example 2014.12: Changing repeated measures data from wide to narrow format

October 21, 2014
By

Data with repeated measures often come to us in the "wide" format, as shown below for the HELP data set we use in our book. Here we show just an ID, the CESD depression measure from four follow-up assessments, plus the baseline CESD. Obs ID CESD...

## Approximating the impact of inflation

October 21, 2014
By

The other day someone mentioned to me a rule of thumb he was using to estimate the number of years $$n$$ it would take for inflation to destroy half of the purchasing power of today's money: $n = \frac{70}{p}$ Here $$p$$ is the inflation in percent,...

## Degrees of Choice: A modification of a WSJ graphic

October 20, 2014
By

This post uses ggplot2 and rCharts to modify a grouped bar chart that appeared in an article that appeared online on October 19, 2014 in Wall Street Journal’s site. The article was titled “How to Sell a Liberal-Arts Education”. The code for ...

## Tuning Laplaces Demon II

October 19, 2014
By

I am continuing with my trying all algorithms of Laplaces Demon. It is actually quite a bit more work than I expected but I do find that some of the things get clearer. Now that I am close to the end of calculating this second batch I learned that ther...

## a bootstrap likelihood approach to Bayesian computation

October 15, 2014
By

This paper by Weixuan Zhu, Juan Miguel Marín [from Carlos III in Madrid, not to be confused with Jean-Michel Marin, from Montpellier!], and Fabrizio Leisen proposes an alternative to our 2013 PNAS paper with Kerrie Mengersen and Pierre Pudlo on empirical likelihood ABC, or BCel. The alternative is based on Davison, Hinkley and Worton’s (1992) […]

## A short taxonomy of Bayes factors

October 15, 2014
By

[Update Oct 2014: Due to some changes to the Bayes factor calculator webpage, and as I understand BFs much better now, this post has been updated ...] I started to familiarize myself with Bayesian statistics. In this post I’ll show some insights ...

## googleVis 0.5.6 released on CRAN

October 14, 2014
By

Version 0.5.6 of googleVis was released on CRAN over the weekend. This version fixes a bug in gvisMotionChart. Its arguments xvar, yvar, sizevar and colorvar were not always picked up correctly. Thanks to Juuso Parkkinen for reporting this issue.Exampl...

## Tuning LaplacesDemon

October 12, 2014
By

I was continuing with my Bayesian algorithms in R exercise. For these exercises I port SAS PROC MCMC examples to the various R solutions. However, the next example was logit model and that's just too simple, especially after last week's Jacobian for th...