Wang minjie
perlatex.bsky.social
Wang minjie
@perlatex.bsky.social
R, Tidyverse, Tidymodels and Stan
Reposted by Wang minjie
In case you ever wondered about the differences between magrittr pipe and base pipe 🤔

This table is taken from a great stackoverflow answer by @GeorgKindermann

stackoverflow.com/questions/67...

#rstats #dataviz #phd
January 23, 2025 at 4:59 PM
Reposted by Wang minjie
Trying out dplyr::consecutive_id() for a project today. #rstats

It generates a unique identifier that increments every time a variable (or combination of variables) changes.
March 18, 2025 at 8:39 PM
Reposted by Wang minjie
Just one more week to go 😮‍💨

Finished my #day24 of the #30DayChartChallenge using some WHO data.

Code at: github.com/barreiro-r/3...

#rstats #dataviz
April 25, 2025 at 5:36 PM
Reposted by Wang minjie
The "Getting Started in R - Tinyverse Edition" eight-page pdf guide now has a 2nd edition using, appropriately, `tinyplot` as the plotting package.

See github.com/eddelbuettel... for more.

#rstats
April 20, 2025 at 7:23 PM
Reposted by Wang minjie
Thing I just learned in #rstats: unz() lets you connect to a .zip and load files from inside it without actually unzipping it (great for a file I'm working with that's 30 MB zipped and 1+ GB unzipped, with multiple CSVs in it)
April 18, 2025 at 6:19 PM
Reposted by Wang minjie
A quick plot for #TidyTuesday this week - celebrating the addition of the penguins data into base R 🐧 I used {ggdist} to plot the distribution of body weights with four different chart types in one! 📊

I couldn't quite decide whether I prefer the light or dark version💡

#RStats #DataViz #ggplot2
April 16, 2025 at 3:18 PM
Reposted by Wang minjie
New version of R is out!

Our Data Scientist, Russ Hyde, has put together a quick review of the key features and changes in R 4.5 — from new language features to graphics updates and more.

📝 Read the full blog post here: www.jumpingrivers.com/blog/whats-n...

#rstats #Rprogramming #opensource
What's new in R 4.5.0?
Here we summarise some of the more interesting changes that have been introduced in R 4.5.0.
www.jumpingrivers.com
April 11, 2025 at 10:34 AM
Reposted by Wang minjie
Made an app so you can view daily updates of this chart & compare other administrations and metrics like unemployment and inflation 🤓

It updates daily, so check it tomorrow to see today's continued US market collapse 🤠

jhelvy.github.io/potus-econ-s...

Built with #rstats #shinylive #quarto
April 7, 2025 at 7:46 PM
Reposted by Wang minjie
"what if i make a one-off Stat ggproto object?", i thought
March 20, 2025 at 8:31 PM
Reposted by Wang minjie
Trophic Ecologists - new pkg alert - {trps} (pronounced ‘tropes’): Bayesian Trophic Position Models using 'Stan'. Estimates trophic position using equations from Post (2002), Vander Zanden & Vadeboncoeur (2002), & Heuvel et al. (2024).

benjaminhlina.github.io/trps/

#rstats #ecology #foodwebs
Bayesian Trophic Position Models using stan
Bayesian trophic position models using stan by leveraging brms for stable isotope data. Trophic position models are derived by using equations from Post (2002) <doi:10.1890/0012-9658(2002)083[0703:USI...
benjaminhlina.github.io
March 22, 2025 at 7:45 PM
Reposted by Wang minjie
A wrapper around the builtin #rstats splinefun() function should work with ggplot2::stat_smooth() --- see code in alt text
March 17, 2025 at 9:59 PM
Reposted by Wang minjie
📊 #psy6135 #rstats Today's topic: Visualizing Uncertainty
Topics: Visualizing distributions, Error bars, Bayesian stuff, fitted curves, ...
Thx to @elibryan.bsky.social, @mjskay.com, @clauswilke.com, @cedricscherer.com and other folks I stole from.
💻 Slides-- friendly.github.io/6135/lecture...
March 14, 2025 at 8:26 PM
Reposted by Wang minjie
🔔 I'm thrilled to introduce my new series! I've been working hard on this project, and I can't wait for you to see it.

🤿 Check out this clip to get a sneak peek: buff.ly/zUowPHW

Let me know what you think and stay tuned for more updates!
✂️ New Series: Health Data Science: Metrics, AI & Spatial Modelling
38 seconds · Clipped by Federica Gazzelloni · Original video "Health Data Science: Metrics, AI & Spatial Modelling - 01" by Federica Gazzelloni
buff.ly
March 5, 2025 at 8:50 AM
Reposted by Wang minjie
📊 #TidyTuesday – 2025 W07 | Agencies from the FBI Crime Data API
.
🔗: stevenponce.netlify.app/data_visuali...
.
#rstats | #r4ds | #dataviz | #ggplot2
February 14, 2025 at 10:48 AM
Reposted by Wang minjie
Rdatasets is a collection of 2300 free and documented datasets in CSV format. It's a great resource for teaching and exploration!

The new `get_dataset()` function from the {marginaleffects} 📦 allows you to search and load them directly in #Rstats.

vincentarelbundock.github.io/Rdatasets/ar...
February 14, 2025 at 12:54 PM
Reposted by Wang minjie
Happy Valentine's Day (p<0.05). #rstats
February 14, 2025 at 11:19 AM
Reposted by Wang minjie
I asked chatGPT to define a new statistical distribution no one had used before, then write R code to simulate the model and fit it with Stan. It created a "Bimodal Exponential-Beta Distribution" (a mixture on the domain (0,1)).

and... it works 😱

code here:
gist.github.com/saudiwin/081...

#rstats
ChatGPT-created statistical distribution with R and Stan Code:
ChatGPT-created statistical distribution with R and Stan Code: - chatgpt_exponential_beta_mixture.R
gist.github.com
December 4, 2024 at 2:20 AM
Reposted by Wang minjie
New blog post! Probability math is hard, but simulating real world data-generating processes is fun. Here's a neat exploration of how to find the probability that everyone in a household has birthdays in the same 6-months, using CDC day-of-birth statistics #rstats www.andrewheiss.com/blog/2024/05...
May 3, 2024 at 3:16 PM
Reposted by Wang minjie
this week in #rstats:
- R 4.4.3 released today! 🎁
- Air: the new superfast R formatter @davisvaughan.bsky.social 💨
- upcoming {rix}/Nix webinar @brodriguesco.bsky.social 📦
- intro to {ellmer} LLM pkg @posit.co 🤖
- tidymodels Q1 2025 update 📊

and more! ✨

www.linkedin.com/pulse/week-r...
This week in R (2025-02-28)
A brand new superfast R formatter; a new version of R; whats new in tidymodels?; useR! deadline extension; get to know {rix}; introducing {ellmer} and more!
www.linkedin.com
February 28, 2025 at 11:21 AM
Reposted by Wang minjie
The #rstats #tidyverse tibble function builds columns sequentially, so you can refer to earlier columns when defining later ones, a feature I use all the time.
January 26, 2025 at 9:40 PM
Reposted by Wang minjie
I completely re-worked my course "Introduction to Bayesian statistics with brms" and taught it for the 1st time this week. It is meant as a tutorial for ecologists, but should be general enough for other sciences as well
github.com/benjamin-ros...
#stats #Rstats #brms #Stan #Bayesian
GitHub - benjamin-rosenbaum/bayesian-intro: Introduction to Bayesian statistics
Introduction to Bayesian statistics. Contribute to benjamin-rosenbaum/bayesian-intro development by creating an account on GitHub.
github.com
February 28, 2025 at 9:19 AM
Reposted by Wang minjie
I like @andrew.heiss.phd, because he's insightful and by all accounts is a genuinely nice guy.

With that said, this (building on @grrrck.xyz's work) is invaluable for making students more comfortable with the second-best #rstats library!
More helpful (at least for me) resources from the blog archive: Seven (7!) tidyexplain-esque animations (downloadable and CC-licensed) showing how {dplyr}'s mutate(), summarize(), group_by(), and ungroup() all work together #rstats #dataskyence www.andrewheiss.com/blog/2024/04...
November 19, 2024 at 8:09 AM
Reposted by Wang minjie
Every damn time... #rstats
September 20, 2024 at 7:39 AM