R · Uncategorized

A modest proposal- coloured confidence intervals

I am of the opinion that confidence intervals should be shown as a range, and coloured/ shaded bands are a good way to show it. They are a probability distribution after all (but you can’t make histogram because it disappears to invisibility after 3 sigma, so bands seems the best plan). Admittedly, I am trying… Continue reading A modest proposal- coloured confidence intervals

New Zealand · R

What is orange and been in the news

Carrot prices http://www.stuff.co.nz/business/90367412/a-kilogram-of-carrots-costs-over-a-dollar-more-than-last-year Looking at both the raw (so to speak) and seasonally adjusted figures, it looks to me like carrots, as the most extreme difference, got a discussion in the press release, but there is more of a steady upward creep in prices generally. The released figures go to the Fruit and Vegetable level,… Continue reading What is orange and been in the news

New Zealand · R

New Zealand Names

This is just showing how to process the New Zealand baby names spreadsheet provided by the New Zealand Governemnt, and also make streamgraphs, available from github with devtools::install_github(“hrbrmstr/streamgraph”) download.file(“https://smartstart.services.govt.nz/assets/files/Top-baby-names-1954-2016.xlsx&#8221;, destfile=”babynames.xlsx”, mode=”wb”, method=”libcurl”) library(readxl) library(dplyr) library(streamgraph) female <- read_excel(“~/Desktop/babynames.xlsx”, sheet = “Girls’ Names”, col_names = FALSE, skip = 7) female <- female[1:100,] male <- read_excel(“~/Desktop/babynames.xlsx”, sheet… Continue reading New Zealand Names


A fix for Qualtrics random selection data

Sometimes I get the problems no-one else has a solution for, particular those involving data transformation. Qualtrics (online survey tool) lets you create random selection questions, where you provide a pool of answer options and set Qualtrics to randomly display a specified number of the answer options to the person doing the survey. Which can… Continue reading A fix for Qualtrics random selection data