Blog Archives

RStanARM basics: visualizing uncertainty in linear regression

November 18, 2016
By
RStanARM basics: visualizing uncertainty in linear regression

As part of my tutorial talk on RStanARM, I presented some examples of how to visualize the uncertainty in Bayesian linear regression models. This post is an expanded demonstration of the approaches I presented in that tutorial. Data: Does brain mass predict how much mammals sleep in a day? Let’s use the mammal sleep dataset from ggplot2. This dataset contains the number of...

Read more »

Recent adventures with lazyeval

August 14, 2016
By
Recent adventures with lazyeval

The lazyeval package is a tool-set for performing nonstandard evaluation in R. Nonstandard evaluation refers to any situation where something special happens with how user input or code is evaluated. For example, the library function doesn’t evalua...

Read more »

Fixing APA citations from Pandoc with stringr

August 3, 2016
By

Pandoc is awesome. It’s the universal translator for plain-text documents. I especially like that it can do inline citations. I write @Jones2005 proved aliens exist and pandoc produces “Jones (2005) proved aliens exist”. But it doesn’t quite d...

Read more »

Why is using list() critical for .dots = setNames() uses in dplyr?

March 22, 2016
By

I wrote an answer about why setNames() shows up sometimes in standard evaluation with dplyr. My explanation turned into a mini-tutorial on why those standard evaluation functions have a .dots argument. The basic idea is that the usual variadic argume...

Read more »

Confusion matrix statistics on late talker diagnoses

October 5, 2015
By

How many late talkers are just late bloomers? More precisely, how many children identified as late talkers at 18 months catch up to the normal range by one year later? This is an important question. From a clinical perspective, we want to support children with language delays, but it is also inefficient to spend resources fixing a self-correcting problem. Fernald and Marchman (2012)...

Read more »

Sponsors

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)