A collection of code examples and half-baked ideas

August 16, 2020 ·

Running a multiverse moderation analysis over arbitrary data decisions and plotting the results

R   multiverse   iteration   code  

January 14, 2019 ·

This post explores how to fit many models at once for each participant in a dataset and extract model summaries to use as predictors.

R   code   iteration  

December 23, 2018 ·

Drawing path diagrams from lavaan objects in ggplot2

SEM   R   ggplot2   lavaan  

October 5, 2017 ·

A quick introduction dplyr's single table verbs, summarizing and grouping, and two table verbs

R   dplyr   code  

February 22, 2017 ·

Some code for restructuring data from individual to dyadic to pairwise formats and back again.

code   dplyr   R  

Built with Hugo, Blogdown, and UIkit.
© 2022 Ethan S. Young