Articles by jameshunterbr

Handling Outliers with R

July 2, 2018 |

Recently, I attended a presentation where the following graph was shown illustrating the response to stimulation with Thalidomide among a cohort of HIV-1 patients. The biomarker used to measure the response in this case was TNF (tumor necrosis factor) and … Continue reading →

Learning about Algorithms and Program Structure

March 13, 2018 |

Outline of the Problem When learning to program, we often start with trivial exercises that don’t motivate anyone to treat programming seriously. Here I want to develop an example step-by-step that will illustrate key concepts of programming in R and … Continue reading →

A Useful Logical Shortcut in R

October 26, 2017 |

While dealing with a small problem in which I needed a list of odd numbers, I remembered a shortcut that I’ve used for more than 30 years to reduce the typing and complication of logical tests — the “if…then” construct. … Continue reading →

Last Day for Stanton Predictions

October 1, 2017 |

This week I’ve been looking at two models in R that are attempting to predict whether Giancarlo Stanton would break Roger Maris’ mark of 61 home runs in a season. I’ve not been counting Barry Bond’s official record of 73 … Continue reading →

Going, going, … 2

September 29, 2017 |

Em vários posts este mês, destaquei um novo versão do curso de estatística que oferecemos em São Paulo sobre estatística. É um curso inicial que usa R como a ferramenta chave para ensinar a montagem de análises quantitativas importantes nas … Continue reading → [Read more...]

Hold the Phones . . . Stanton’s Alive Again

September 29, 2017 |

Sometimes, events move faster than we predict them. This is one of the things that makes  statistics as much of an art as a science. Last night, Giancarlo Stanton hit not 1 but 2 home runs. He is now tied … Continue reading →

Going, Going . . . 1

September 28, 2017 |

Two posts today with similar themes. Time is running out.  First, time is running out for Giancarlo Stanton. His bat has been very silent this week so far. The Marlins have 7 more games and he still needs 4 dingers … Continue reading → [Read more...]

The Battle of Bayesian Home Run Models

September 25, 2017 |

The regular Major League Baseball season is coming to an end. Next week, we move into the playoffs and eventually the World Series. However, we have a nice statistical modeling question playing out in this last week. Giancarlo Stanton of … Continue reading → [Read more...]