Skip to content

Instantly share code, notes, and snippets.

View TysonStanley's full-sized avatar
🏠
Working from home

Tyson Barrett TysonStanley

🏠
Working from home
View GitHub Profile
@gadenbuie
gadenbuie / join-animations-with-gganimate.R
Last active January 11, 2022 15:48
Animated dplyr joins with gganimate
# Animated dplyr joins with gganimate
# * Garrick Aden-Buie
# * garrickadenbuie.com
# * MIT License: https://opensource.org/licenses/MIT
# Note: I used Fira Sans and Fira Mono fonts.
# Use search and replace to use a different font if Fira is not available.
library(tidyverse)
library(gganimate)
#' ---
#' output:
#' html_document:
#' theme: simplex
#' highlight: espresso
#' keep_md: true
#' ---
#+ message=FALSE
library(tidyverse)
library(hrbrmisc)
@tslumley
tslumley / README.md
Last active December 17, 2017 14:34
predictive margins like SUDAAN does them

Predictive margins for generalised linear models in R

This code implements the thing that PREDMARG in SUDAAN does, as described in

  • Graubard B, Korn E (1999) "Predictive Margins with Survey Data" Biometrics 55:652-659
  • Bieler, Brown, Williams, & Brogan (2010) "Estimating Model-Adjusted Risks, Risk Differences, and Risk Ratios From Complex Survey Data" Am J Epi DOI: 10.1093/aje/kwp440