Linear mixed models have a lot of moving parts. I've found that simulations really helped me understand how these models work and the various parts of them. Here are some of my favorite simulation guides, tutorials, and resources in #RStats. (1/x) 🧵



Craig Van Pay (@CKVanPay; 1362282): Linear mixed models have a lot of moving parts. I’ve found that simulations really helped me understand how these models work and the various parts of them. Here are some of my favorite simulation guides, tutorials, and resources in #RStats. (1/x) 🧵

R posts you might have missed! (@icymi_r; 33664): ✍️ Half a dozen frequentist and Bayesian ways to measure the difference in means in two groups > 👤 Andrew Heiss @andrewheiss
> 🔗 #rstats #datascience

Andrew Heiss (@andrewheiss; 17931): Regular reminder that the show_col() function in the {scales} library is indispensable #rstats

Giuliano Liguori (@ingliguori; 178154): 9 Reasons to start learning #Python Via @ingliguori #BigData #Analytics #DataScience #AI #MachineLearning #IoT #IIoT #Python #RStats #TensorFlow #Java #JavaScript #ReactJS #CloudComputing #Serverless #DataScientist #Linux #Programming #Coding #100DaysofCode @antgrasso @mvollmer1


Shannon Pileggi (@PipingHotData; 398): y’all, i had NO IDEA you could preview draft #rstats website changes with Netlifly + GitHub branches ⚒️ > @grrrck has a great 2019 post on this for {blogdown} > here’s my quick {distill} take on it!
> as always, thanks @apreshill! 💜 >

Georg Diez (@GeorgDiez1; 309): 28.3.20 > „Die kollektive Angst frisst sich in die Einzelnen und bleibt dort drinnen, eine Weile jedenfalls.“ > #Blogdown, bei ⁦@Frohmannberlin⁩

Georg Diez (@GeorgDiez1; 187): „Es sind die Verheerungen des Kommenden, die sich da andeuten, eine andere Welt.“ Blogdown, 30.3.20 „Und wenn das nun das Ergebnis wäre, dass diese Form von Zivilisation verloren gehen würde, eine Wüste bliebe, wo vorher (…) Vielfalt war?“ ⁦⁦⁦@Frohmannberlin⁩

Benjamin Wolfe (@BenjaminWolfe; 111): @jarildy #rstats has a wonderful package for it called #blogdown. Then you just write your posts in markdown which is easy to learn. And if you ever want to add fancy analyses, you’re all set up! > I’d use @Netlify for free hosting. > I recommend anything from @apreshill to get you started.

Nic Crane 🏳️‍🌈🤓 (@nic_crane; 100): @sellorm @apreshill Ooh, actually, I think I’ve just found the exact relevant @apreshill resource - a recent blog post which I’ll use instead of the book for now as I’m assuming it’ll be more up-to-date;

women dot code Belgium 🇧🇪 (@womendotcodebe; 52): Always wanted to create a static blog but didn’t know where to start? Or maybe you are interested in Data Science, programming in R and you could use your own blog? > Anna wrote a tutorial to create your own blog with R blogdown and host it on Github Pages

Nic Crane 🏳️‍🌈🤓 (@nic_crane; 52): I was going to start my blogdown blog again, but the book ( has the warning in the image below. Anyone got a feel for how much things have changed since 2019? Debating whether to go ahead or find an alternative for my #rstats & #pydata blogging!

June Choe (@yjunechoe; 51): #30DayChartChallenge Day3: historical > Growth of my #distill website since its launch/migration from #blogdown last summer. Big bump from my {ggplot2} stat_* post in September and 10 days ago (??). I haven’t blogged recently but hope to update soon! > Code:

Bryan Shalloway (@brshallo; 50): (Mostly) enabled code-folding on my #hugo #blogdown powered + lithium themed website. Thank you for documentation by @jepusto @StatnMap : and comments by @MarkDruffel @jordanbranham31 > Link to commit where I set-it up for my site:

Yihui Xie (@xieyihui; 40): @umairdurrani87 @RCoderWeb When in doubt, run blogdown::check_site(), which should tell you that you have draft posts in this case :)

Anthony Scotina (@ScotinaStats; 24): I wrote about getting started with {blogdown}! > Huge shoutout to all the resources already out there that I used when I learned blogdown. The #rstats community is amazing! >

David “nicholdav” Nicholson (@nicholdav; 21): @jarildy @dk_prabhu definitely I wouldn’t judge if you just want to get something up and running with wix or one of those > but static site generators can be fun > See blogdown (some hugo info here) > In Pythonland I like Pelican + Nikola >

Fan Jiang (@FanOnRobotics; 20): Finally a new home page after ~4yrs of procrastination Enjoy some retro vibes when you visit :) > (Published with Hugo and blogdown)

Lukas Hager (@LukasHager; 20): I’m excited to link to my personal site, created with blogdown (thanks to @xieyihui ): > [↪](

TedRedwood (@Ted_Redwood; 20): The best #EssexFM content I’ve read today! > 1110 > You won’t believe who Ted calls out prior to the third annual Bloggy Blogdown!

tidyverse tweets (@tidyversetweets; 13): Automating site building with blogdown #tidyverse #rstats

tidyverse tweets (@tidyversetweets; 12): Blogdown - submit/receive an email to access/download a file in R #tidyverse #rstats

Umair Durrani (@umairdurrani87; 12): #blogdown question: The ‘Privacy Policy’ link is showing up locally, but not on the deployed version. What am I doing wrong? Source on GitHub: #rstats

Hung Lo 羅鴻 (@HungLo_tw; 10): @BlmzRina I tried blogdown with R, also very good but relatively complicated so I decided to go with the easy one :) oh I was also recommended by my friend who uses Wix

jo-sigh-ughhh (@JosiahParry; 10): @CMastication @Emil_Hvitfeldt lol i really wish i could fix it but i have literally no idea what is happening. i’ll go interrogate knitr & blogdown. here it is though!

Gabriela D’Souza (@gabster0191; 10): an image error in blogdown just consumed an hour of my afternoon bah humbug. Setting it all on fire and going back to wordpress. (the solution was this: It just took a while for me to figure out how to apply it)

Lisa DeBruine 🏳️‍🌈 (@LisaDeBruine; 10): @dsquintana @drboothroyd I was just going to link Lynda to that site :) I personally hate blogdown now and am doing most everything as simple single-page sites or bookdown (and meaning to learn distill). But if you like a blog structure, it’s nice.


R posts you might have missed! (@icymi_r; 9613): Data science in focus: {xaringan}. A short #rstats thread 🧵 󠁾󠁾󠁾~~~ > xaringan is an R package written by @xieyihui that is based on the JavaScript library remark.js and is designed to help you write amazing slides using RMarkdown.
> 🔗 #rstats

🖤✊🏻🌹 John Flournoy Wears a Mask 🌹✊🏻🖤 (@flourneuro; 346): What’s your current go-to for open-source statistics texts at the undergrad -> grad level for psych? > The best I’m aware of: > Poldrack Revelle McElreath * + > *not fully open, not psych

Craig Van Pay (@CKVanPay; 120):

JB_Kurland (@JbKurland; 73): Thanks @Crimealytics! In an effort to provide further insight @DrAlexPiquero @npiquero @esorrell3 and @DrWandaLeal will be providing all the results for each and every team in a series of reports. To start take a look at the results for the @MiamiDolphins

Devin Judge-Lord (@JudgeLord; 65): Hey fellow polisci grads! APSA will soon open 2021 #DDRIG applications. 👀 > To help get you started, I made a template (bookdown/LaTeX/Docx) based on last year’s call: > Please share far and wide! And good luck!

Serdar Balcı (@serdarbalci; 53): My Director: “Wow, how did you do that?” Me: Meh, just regex, #rstats #ggplot2 and #bookdown defaults My Director: “You will prepare a presentation” Me: “Ok”, while looking a way to convert bookdown to xaringan or shower presentation

Bastian Koch🎙 (@bastiankbx; 51): Das ist quasi ein Bookdown. Besondere Leseempfehlungen nicht nur für @alma_lapalma:

안용열 (@yyahn; 51): @d_ijk_stra 결국(이미?) markdown + pandoc으로 통합되지 않을까요? 인용같은 건 이미 되고.. RMarkdown같은 걸 쓰면 latex package도 어느정도 사용 가능합니다. Bookdown으로 온라인 문서도 만들 수 있고…

Eric Leung (@erictleung; 44): #TIL you can exit knitting an RMarkdown document early by placing this within a code block > knitr::knit_exit() > #RStats

Héctor (@AnHector; 30): Nueva entrada: ¿Cuál es el mejor gráfico para cada caso? Pt. 5 en R-conomics por el compa @ElJorgeHdz

Sebastian Sukstorf (@sukstorf; 30): @JohannesStarke @KhPape Ich würde nicht auf WordPress, sondern eher auf statische Webseiten setzen. Zumal ja auch die gemeinsame Bearbeitung wichtig ist. Hierfür ist ein Blick in Richtung blowdown hilfreich. Achtung: Am Beginn eine hohe Lernkurve

Soraya #wearamask😷 Campbell 🇹🇹🇩🇴 (@sorayaworldwide; 22): A little Monday night reading 🤩🤓 Supervised Machine Learning for Text Analysis in R #rmarkdown #bookdown

atusy (@Atsushi776; 21): JavaScript使ってgitbookだろうとhtml_vignetteだろうとcode_foldingできるようにしちゃおうぜーと提案。今日は寝るけど後日取り組む。

Lucas Morin (@lucasmorin_eolc; 20): @CovaFlorian Maybe something you’d find useful:

Emmy Crae (@EmmyCrae; 20): Bookdown your haircut with WHO YOU ELP BARBER9ja. Affordable & Professional. Find @ Fagba, Lagos. 📞☎️: 08093709235

yaniv brandvain (@yanivbrandvain; 20): @pleunipennings @Graham_Coop here. but i imagine you’re bettter at explaining it than i am .. hope to improve next year

Eric Green (@ericpgreen; 12): Any #rstats #bookdown folks have ideas about modifying the bs4_book() template to keep left navigation but replace right navigation with tufte-style margin notes from tufte_html_book()? >

Karl Dietz Verlag Berlin (@KarlDietzBerlin; 10): @bastiankbx @alma_lapalma Bookdown 😍 Bestes Wort 💎

Arthur Albuquerque (@arthur_alb1; 10): @SolomonKurz hahaha I imagined since you only put this one as an example in the Statistical Rethinking bookdown. Yet I will definitely take a look at your website, they are all probably great. Thank you!

Rev. Dr. Ryan Straight (@RyanStraight; 10): @OpenAcademics So, one idea I’m trying is to use a big ol’ #bookdown project to keep track of smaller bits of topical writing and ideation. I can then organize those into sections and see what larger concepts emerge. The cross-referencing is useful, too.

ホームシックたいち (@HomesickTic; 10): SHAPについて調べてたらわかりやすいウェブサイトに出会ったのでトップページ共有 こーゆーの書いてる人はやっぱり尊敬するなー > 解釈可能な機械学習 Interpretable Machine Learning #rmarkdown #bookdown

Naatero (@Naatero3; 10): Guía #Rmarkdown

Liam Scott (@PolyphonicAE; 10): @zettlr Whilst I have you, have you found a good way to cite tables in Zettlr? Figures are easy but the only solutions I’m finding uses bookdown or straight LaTeX code.

tidyverse tweets (@tidyversetweets; 0/1): Disabling figure numbering in bookdown #tidyverse #rstats


Jae Yeon Kim (@JaeJaeykim2; 170): My recent favorite R workflow. Step 1: experimenting with code in markdown -> Step2: knitr::purl(input = markdown, output = script) -> Step 3: source the script as a local background job. See this for more info:

Martin Tomko (@dinomirMT; 52): Updating tute on replicable reports in #Python with #nbconvert 6.0 - completely ruins my workflow w tplx and ipynb> latex, and I am unable to set any templating, titles etc. Why oh why! Mega pain, complex, students will never get it… #sphinx. KnitR #rstats envy @ProjectJupyter

tidyverse tweets (@tidyversetweets; 23): R: Understanding the Basics of Markdown and Knitr #tidyverse #rstats

Gordon Shotwell 🇨🇦 (@gshotwell; 22): knitr::knit_child() is my new favorite #rstats function

Kevin Stierhoff (@kstierhoff; 21): TFW some stray character creeps into your .Rmd file and then your document won’t knit… #knitr #rmarkdown #rstudio #FML

Yihui Xie (@xieyihui; 20): @rstub73 @opencpu @AchimZeileis That’s true for Rnw vignettes compiled through Sweave (e.g. the case of Rcpp). For Rnw compiled with the knitr vignette engine, there is a chance to call tinytex::latexmk(). It’s hard to give a full answer on Twitter, so pls consider a Q&A site or file a Github issue. Thanks!

Jordan Young (@525_Young; 20): @MirunaBarnoschi Give this website a try once stack overflow is back online 😊:

atusy (@Atsushi776; 10): @niszet0 使える単位は限りあっだかもじれませんが、できたはずです。昔それにknitrも対応させるPRしました。

Christophe Dervieux (@chrisderv; 10): @kstierhoff @Huia_fishocean Please open an issue in knitr if you think there is a regression. With a simple example and the offending bib file, it could be enough to look into.

HECTOR A. LIZARRAGA (@halizarraga; 10): @datalorax_ Ok, thanks, I’ll have a look at the video. I used the knitr image procedure as it works for RMarkdown document, in pdf but it did not work for distillery. Cheers

Silvia Canelón (@spcanelon; 10): @thomas_mock This is great! Some other places/ways to include alt text: > 🐦 In your social media card metadata with {metathis} > ✨ In your code chunks with the new fig.alt code chunk option in knitr


tidyverse tweets (@tidyversetweets; 0/1): Pagedown(resume) template not producing the right formatting #tidyverse #rstats


Jeroen Ooms (@opencpu; 132): Is there a way to configure tinytex to automatically install missing packages on-the-fly, like in miktex?

Jeroen Ooms (@opencpu; 61): @xieyihui @rstub73 @AchimZeileis OK, I tried to summarize the issue here:

Ralf Stubner (@rstub73; 20): @opencpu This should happen automatically when rendering an Rmd file, since this functionality lives within the tinytex R package. The TinyTeX TeX distribution is “only” a repackaged TeXLive and knows nothing about this.

Achim Zeileis (@AchimZeileis; 20): @opencpu @rstub73 It should do this. Are you using tinytex (the R package) with TinyTeX (the LaTeX distribution) or with another LaTeX distribution installed on the system?

Ralf Stubner (@rstub73; 10): @opencpu @AchimZeileis In that case you are out of luck. The functionality to install packages is part of the tinytex R package (tinytex::latexmk()) that is not used for Rnw vignettes.

CRAN Package Updates (@CRANberriesFeed; 0/1): CRAN updates: incidence2 tinytex validate #rstats


R posts you might have missed! (@icymi_r; 528): 📦🎨 xaringan-metropolis • Metropolis theme of R package xaringan > 👤 Patrick Schratz @pjs_228
> 🔗 #rstats #datascience

R posts you might have missed! (@icymi_r; 479): ✍️ Sharing Your Work with xaringan: An Introduction to xaringan for Presentations: The Basics and Beyond. > 👤 Silvia Canelón @spcanelon > 🔗 #rstats #datascience

Beatriz Milz (@BeaMilz; 341): Hoje passei a manhã estudando mais pra entender o pacote xaringan. > Assisti vários episódios de naruto🤣 > Agora já sei o que é o chakra, tive uma introdução ao sharingan… ainda não apareceu nada sobre infinite moonreader entao preciso assistir mais para entender as funções 🧐

R posts you might have missed! (@icymi_r; 214): @xieyihui 🎓 If you’ve never used {xaringan} before, or are new to writing slides using RMarkdown, check out @spcanelon’s workshop materials: > ‘Sharing Your Work with xaringan: An Introduction to xaringan for Presentations: The Basics and Beyond’ > 🔗 #rstats

Joscelin Rocha 🏳️‍🌈🇧🇴 (@JoscelinRocha; 177): Check this wonderful 🧵!!!! All my R workshops are done using Xaringan by @xieyihui!! You can create amazing slides with #rmarkdown!! Once you go there you don’t wanna go back. #r #rstats #gradschool #teachingR

Alex Albright (@AllbriteAllday; 175): What are your favorite “why use xaringan?” and/or “why leave beamer for xaringan?” resources? Slides, blog posts, etc. welcome. > Bonus if the intended audience is academics or beamer users. #rstats > cc-ing some xaringan academic folks: @Andrew___Baker @JaeJaeykim2 @ramattheis

Khia A. Johnson (@khia_johnson; 150): I just did a presentation made with xaringan in R and can now say I’m a fan! A+ presenter mode!

R posts you might have missed! (@icymi_r; 112): @xieyihui @spcanelon @grrrck 🛠️🎨 For a great worked example of making customised slides with {xaringan} and {xaringanthemer} check out @katiejolly6’s recent blog post: > ‘Applying design guidelines to slides with {xaringanthemer}’ > 🔗 #rstats

R posts you might have missed! (@icymi_r; 111): @xieyihui @spcanelon 🎨 One of the best parts of using {xaringan} is how customisable it is - it’s easy to make slides that really pop.
> To easily change the look and feel of your slides, @grrrck’s {xaringanthemer} is an amazing resource: > 📦 #rstats

R posts you might have missed! (@icymi_r; 71): @xieyihui @spcanelon @grrrck @katiejolly6 There’s more! @grrrck’s {xaringanExtra} extends {xaringan} in lots of cool ways. Including: • Creating a tile view • Writing / drawing directly onto slides • Adding tabbed panels > 🔗 #rstats

Ross Mattheis (@ramattheis; 70): @AllbriteAllday @Andrew___Baker @JaeJaeykim2 I think @apreshill’s awesome slides are a great place to start:

Mickaël CANOUIL (@mickaelcanouil; 64): {xaringan} makeover for my French #rstats #shiny workshop completed at 99 % (I still have an issue with progress/notification {webshot}s, but I will fix it later 🤷‍♂️) >

R posts you might have missed! (@icymi_r; 61): @xieyihui ❓For a bit of an overview of what {xaringan} can do and how it works, dive into @xieyihui’s template slides and tutorial: > 🔗 #rstats

Marilia (@mmfbee; 52): Eu 0 x 10 Xaringan > Não sei pq fica esse espaço em branco entre a barra de rolagem e a palavra plot! > 😤 > #rstats #xaringan

R posts you might have missed! (@icymi_r; 52): @xieyihui @spcanelon @grrrck @katiejolly6 🖥️ {xaringan} slides can be viewed in the browser, so it’s easy to deploy and host your slides online. Check out @spcanelon’s step-by-step guide using Github Pages: > ‘Deploying xaringan Slides: A Ten-Step GitHub Pages Workflow’ > 🔗 #rstats

Alison Presmanes Hill (@apreshill; 50): @AllbriteAllday @Andrew___Baker @JaeJaeykim2 @ramattheis I always share @xieyihui’s original blog post

Jae Yeon Kim (@JaeJaeykim2; 50): @AllbriteAllday @Andrew___Baker @ramattheis extra features for xaringan

Joscelin Rocha 🏳️‍🌈🇧🇴 (@JoscelinRocha; 31): @khia_johnson There are so many cool things you can do with xaringan like adding logos, showing slides as tiles, interactive slides with sounds, etc. I am too in love with it. I try to keep up with the cool things here:

Ariel Muldoon (@aosmith16; 30): @JaeJaeykim2 @AllbriteAllday @Andrew___Baker @ramattheis I just started using xaringan in the last few weeks and xaringanExtra contains so much additional magic. And xaringanthemer for theming really helped me get started with an overall slide “look”:

Mickaël CANOUIL (@mickaelcanouil; 23): Work in progress … #xaringan #rstats

cameron fen (@FenCameron; 20): This resource is important in understanding the proper historical and cultural context of xaringan: >

Castro (@EiCastroo; 20): Sonos xaringan umaietucomademieteiru

Marilia (@mmfbee; 20): @fredfribe @BeaMilz @ClaudianoNeto Preciso tmb migo! Estou me aventurando no Xaringan por influência positiva da @BeaMilz. Confesso que no começo pensava “pra que fazer isso se tem Power point?”, ate ver a maravilha que é para montar cursos e afins com scripts etc. Melhor que ficar mostrando código!

Beatriz Milz (@BeaMilz; 20): @mmfbee @ClaudianoNeto Isso ajuda? Em vez de usar a div, usar um css para fazer isso >

Claus Wilke (@ClausWilke; 20): @VeritasArdentur @_wafflepancake Slides are made with xaringan. Sources are available on github.

R posts you might have missed! (@icymi_r; 20): Please share any other {xaringan} resources you’ve found useful below!

tidyverse tweets (@tidyversetweets; 13): Can I combine tile view and presenter mode in Xaringan? #tidyverse #rstats

tidyverse tweets (@tidyversetweets; 12): Xaringan: center image within two columns layout #tidyverse #rstats

tidyverse tweets (@tidyversetweets; 12): Can I combine tile view and presenter mode in Xaringan? #tidyverse #rstats

Victória Etges Helfer (@VicHelfer; 10): Why modeling when you could search for new xaringan themes for your reporting of the runs?

Ledgerdomain (@fredfribe; 10): @mmfbee @BeaMilz @ClaudianoNeto Quarta-feira passada fiz minha primeira apresentação com o Xaringan; não tinha muita coisa, mas foi legal apresentar. No aguardo de ter a chance de mostrar output de código etc

Serena DeStefani (@_DeStefani; 10): I thought I was creating slides in #xaringan, but what came out feels almost like art!

Phiippe MICHEL (@PhiippeMICHEL; 10): @icymi_r @pjs_228 Beautiful theme. I use this with #Beamer and with #Xaringan. Thank you.