How well do you know your fundamental operators in different languages? ‘Easy’ examples help to fortify that knowledge, and comparing across languages makes for some neat implementation detail discoveries. I saw this…
Category: Blogging
Working with Ordinal Ranks in {marginaleffects}
Given an ordinal regression model, it is relatively easy to get class-wise predictions – the conditional predicted probability of each level of the outcome. However, often, one might be interested in summarizing…
30 Day Chart Challenge 2025
[This article was first published on R on Nicola Rennie, and kindly contributed to R-bloggers]. (You can report issue about the content on this page here) Want to share your content on…
The recipe to debug your R code in VSCode
[This article was first published on Yohann’s blog, and kindly contributed to R-bloggers]. (You can report issue about the content on this page here) Want to share your content on R-bloggers? click…
March 2025 Top 40 New CRAN Packages
Agriculture STCCGEV v1.0.0: Provides functions to model and forecast crop yields using a spatial temporal conditional copula approach. The package incorporates extreme weather covariates and Bayesian Structural Time Series models to analyze…
Model Diagnostics: Statistics vs Machine Learning
In this post, we show how different use cases require different model diagnostics. In short, we compare (statistical) inference and prediction. As an example, we use a simple linear model for the…
Explained vs. Predictive Power: R², Adjusted R², and Beyond
You trust R². Should you?You proudly present a model with R² = 0.95. Everyone applauds.But what if your model fails miserably on the next new data? When building a statistical model, one…
vowels: Phonetics cloze quiz about Cardinal vowels
[This article was first published on R/exams, and kindly contributed to R-bloggers]. (You can report issue about the content on this page here) Want to share your content on R-bloggers? click here…
Fast Grouped Counts and Means in R
# We run the code in a fresh session library(tidyverse) library(duckdb) library(data.table) library(collapse) library(polars) polars_info() # 8 threads setDTthreads(8) con <- dbConnect(duckdb(config = list(threads = “8”))) set.seed(1) N <- 10^(5:8) m_queries <-…
sumdiff: Sum Minus Difference
[This article was first published on R/exams, and kindly contributed to R-bloggers]. (You can report issue about the content on this page here) Want to share your content on R-bloggers? click here…