Skip to content

Instantly share code, notes, and snippets.

View F-D-X's full-sized avatar
😇
I may be slow to respond.

Brugy F-D-X

😇
I may be slow to respond.
View GitHub Profile
@mathesong
mathesong / Power_Question.md
Last active November 9, 2023 19:27
Power Question: multiple noisy measurements vs single noiseless outcome

Aim

I want to simulate to demonstrate how it's possible that the hierarchical model can even have better power than getting exactly the right values.

Note: The original question and results are no longer applicable due to a few fatal flaws with my code. Below follows the correct code. But the oracle is optimal now...

Libraries

@mathesong
mathesong / reminderbot.R
Last active November 9, 2023 19:16
Making a Reminder Bot for Automating Meeting Organisation with R and Google Sheets
# Please note that this script is not fully tested. This is a genericised
# version of two working versions, where I've added and removed bits and
# pieces along the way without testing them. Please let me know if there
# are errors or things missing, because this could easily have happened.
library(tidyverse)
library(googlesheets)
library(lubridate)
library(gmailr)