المشاركات

عرض المشاركات من أغسطس, 2023

dqrng v0.3.1 and tikzDevice v0.12.5

Today dqrng version 0.3.1 made it unto CRAN and is now propagating to the mirrors. Kyle Butts provided the implementation for the new dqrrademacher method for drawing Rademacher weights. The Rademacher distribution is equivalent to flipping a fair coin... Continue reading: dqrng v0.3.1 and tikzDevice v0.12.5 http://dlvr.it/SvR8JS

How to: one-way ANOVA by hand

صورة
Introduction Data and hypotheses ANOVA by hand Overall and group means SSR and SSE ANOVA table Conclusion of the test Conclusion Introduction An ANOVA is a statistical test used to compare a quantitative variable between groups, to determine if there is a statistically significant difference between several population means. In ... Continue reading: How to: one-way ANOVA by hand http://dlvr.it/SvPd4C

Three (four?) R functions I enjoyed this week

There are already three functions of note on a piece of paper on my desk, so it’s time to blog about them! How does this package depend on this other package? pak::pkg_deps_explain() The pak package by Gábor Csárdi makes installing packages easie... Continue reading: Three (four?) R functions I enjoyed this week http://dlvr.it/SvNTB2

Now You’re Thinking with Arrays

صورة
I keep hearing the assertion that “writing APL/Haskell/etc… makes you think differently” and I kept wondering why I agreed with the statement but at the same time didn’t think too much of it. I believe I’ve figured out that it’s because I happened to h... Continue reading: Now You’re Thinking with Arrays http://dlvr.it/SvMB9K

R/Basel 2023

صورة
The regional R/Basel event took place at Roche on 21/07: Our presentation and impressions. R/Basel 2023 is an useR! regional event that took place at Roche main campus. The agenda with talks and presentations can be found at the following link. Base... Continue reading: R/Basel 2023 http://dlvr.it/SvLFZl

Enhancing Your Histograms in R: Adding Vertical Lines for Better Insights

صورة
Introduction Are you tired of looking at plain, vanilla histograms that just show the distribution of your data without any additional context? If so, you’re in for a treat! In this blog post, we’ll explore a simple yet powerful technique to tak... Continue reading: Enhancing Your Histograms in R: Adding Vertical Lines for Better Insights http://dlvr.it/SvJHxj

Exploring Causal Discovery with Causal-learn and Reticulate in R

صورة
The PyWhy Causal-learn Discord community is fantastic! The package documentation is equally impressive, making experiential learning both fun and informative. Truly, it’s another exceptional tool for causal discovery at our fingertips! ❤️ It’s time to delve into PyWhy’s Causal-learn! his brief blog post leverages the framework from a ... Continue reading: Exploring Causal Discovery with Causal-learn and Reticulate in R http://dlvr.it/SvGR3J

Unravelling Transparency in Coverage Data

I have a challenge: extracting data from an enormous JSON file. The structure of the file is not ideal: it’s a mapping at the top level, which means that for most standard approaches the entire document needs to be loaded before it can be processed. It would have been ... Continue reading: Unravelling Transparency in Coverage Data http://dlvr.it/SvFzcY

Little useless-useful R functions – Return matrix elements in spiral order

صورة
Another one from the Leetcode challenge. This time, get the elements (single values) from the matrix in a spiral order with a starting position of [1,1]. So, the basic idea is to retrieve a vector of elements from a matrix…Read more › Continue reading: Little useless-useful R functions – Return matrix elements in spiral order http://dlvr.it/SvFbfT

6 New books added to Big Book of R

Welcome to another roundup of new additions to the Big Book of R collection of almost 400 books! If you want to bypass social media algorithms and be 100% sure you’ll be notified of new additions, sign up to my newsletter. You can select to only receive Big Book of … The ... Continue reading: 6 New books added to Big Book of R http://dlvr.it/SvFL1v

Exploring Causal Discovery with gCastle through Reticulate in R

صورة
Get ready for a thrill ride in causal discovery! We’re diving into gCastle, a Python package, right in R to amp up our skills. Let’s orchestrate our prior knowledge and nail that true DAG. 🔥 As I delve into Aleksander Molak’s Causa... Continue reading: Exploring Causal Discovery with gCastle through Reticulate in R http://dlvr.it/SvDCBT

rOpenSci News Digest, August 2023

Dear rOpenSci friends, it’s time for our monthly news roundup! You can read this post on our blog. Now let’s dive into the activity at and around rOpenSci! rOpenSci HQ Open Call for rOpenSci Champions Program Applications! Still open: ... Continue reading: rOpenSci News Digest, August 2023 http://dlvr.it/SvBkCh

Data Science with R (and RStudio)

صورة
This blog has been silent for a while, and the Covid-19 pandemic has forced me to ditch my R to-do list for 2021. I did, however, manage to assemble a few R-related things in the past couple of years. This note documents the main one, a Data Science wi... Continue reading: Data Science with R (and RStudio) http://dlvr.it/Sv8GYR

Exploring Data Distribution in R: A Comprehensive Guide

صورة
Introduction Understanding the distribution of your data is a fundamental step in any data analysis process. It gives you insights into the spread, central tendency, and overall shape of your data. In this blog post, we’ll explore two popular fu... Continue reading: Exploring Data Distribution in R: A Comprehensive Guide http://dlvr.it/Sv5c5z

Unraveling the Effects: Collider Adjustments in Logistic Regression

صورة
Simulating a binary dataset, coupled with an understanding of the logit link and the linear formula, is truly fascinating! However, we must exercise caution regarding our adjustments, as they can potentially divert us from the true findings. I advocate for transparency in Directed Acyclic Graphs (DAGs) and emphasize the sequence: ... Continue reading: Unraveling the Effects: Collider Adjustments in Logistic Regression http://dlvr.it/Sv3lDm

quantmod_0.4.25 on CRAN

An updated version of quantmod is now on CRAN. It includes an awesome new feature that allows you to import up to 7 days of intraday data from Yahoo Finance! New Features getSymbols.yahoo() can import up to 7 days of intraday data! Thanks to @kapsner... Continue reading: quantmod_0.4.25 on CRAN http://dlvr.it/Sv2zP7

Creating template files with R

صورة
Over the past few months, I’ve found myself fine-tuning the structure of my R scripts for #TidyTuesday, and each week they have similar sections: load packages, load data, data wrangling, make a plot, save the plot, and so on. What I’ve en... Continue reading: Creating template files with R http://dlvr.it/Sv1W98

R Esquisse: How to Explore Data in R Through a Tableau-like Drag-and-Drop Interface

صورة
R Esquisse is an R package that provides an intuitive GUI for creating data visualizations using ggplot2. This package is particularly valuable for stakeholders seeking quick interactive analysis and insights gathering from data sources, whether they are new to R or prefer a more visual approach to creating plots. With ... Continue reading: R Esquisse: How to Explore Data in R Through a Tableau-like Drag-and-Drop Interface http://dlvr.it/StzVCX

Sharing templates with {designer}

صورة
With the upcoming release of {designer}, one of the key features is the ability to save and share templates; by including it as part of the application, this removes the need to bookmark specific IDs, and makes it easier to use and maintain multiple wireframes. Instead of using the bookmark ... Continue reading: Sharing templates with {designer} http://dlvr.it/StxTd3

Introduction to structural causal modelling

Introduction to structural causal modelling A primary goal of science is to understand causes. Structural causal modelling is a framework for developing causal hypotheses to test with data. I taught a workshop at the Australian Marine Sciences Associ... Continue reading: Introduction to structural causal modelling http://dlvr.it/StvSwT

What Do Tunisians Really Think About President Kais Saied?

صورة
Robustness check: time of completion Survey Design Sensitivity Estimates Alternative Estimation: RRreg Alternative Estimator: rr BRMS Model Adjustment with MRP Gender Age Region Simulation Comparison: Univariate Vs. Regression References This ... Continue reading: What Do Tunisians Really Think About President Kais Saied? http://dlvr.it/StsTPK

Testing multiple differences via symmetric hierarchical Dirichlet processes

صورة
Testing differences: from ANOVA to BNP Detecting and quantifying differences between groups is a problem of crucial significance across various fields, often addressed by practitioners using standard analysis of variance (ANOVA). However, ANOVA is subject to several well-known limitations. It primarily detects differences only in group means, assumes homogeneity within ... Continue reading: Testing multiple differences via symmetric hierarchical Dirichlet processes http://dlvr.it/Stpr90

Use of R for Pharma in Rosario, Argentina

صورة
Ivan Millanes from the R en Rosario recently talked to the R-Consortium. He shared the group’s vision to create an inclusive knowledge-sharing platform for a diverse R community in Rosario.... The post Use of R for Pharma in Rosario, Argentina appeared first on R Consortium. Continue reading: Use of R for Pharma in Rosario, Argentina http://dlvr.it/Stpr3d

The Journey of Bringing webR into Shiny: Boost Performance, Improve Scalability

صورة
webR has been a trending topic ever since the release of webR 0.1.1 in March 2023. With the introduction of webR, developers can run R commands directly on top of their clients’ browsers. This eliminates the need for users to install R separately to run R scripts, allowing them to leverage their ... Continue reading: The Journey of Bringing webR into Shiny: Boost Performance, Improve Scalability http://dlvr.it/Stm55w

Mapping for the Tombstone Project

صورة
Project Overview I’m working on a project for my father that will culminate in a website for his genealogy research. There are a couple of different parts that I’m working on independently. In a previous part of the project, I matched an excel sheet with GPS coordinates and ... Continue reading: Mapping for the Tombstone Project http://dlvr.it/StkgmT

Solving Systems of Equations in R using the solve() Function

Introduction In mathematical modeling and data analysis, it is often necessary to solve systems of equations to find the values of unknown variables. R provides the solve() function, which is a powerful tool for solving systems of linear equatio... Continue reading: Solving Systems of Equations in R using the solve() Function http://dlvr.it/Sth143

An Introduction to Bayesian A/B Testing in Stan, R, and Python workshop

Join our workshop on Introduction to An Introduction to Bayesian A/B Testing in Stan, R, and Python, which is a part of our workshops for Ukraine series!  Here’s some more info:  Title: An Introduction to Bayesian A/B Testing in Stan, R, and Python Date: Thursday, September 14th, 18:00 – 20:00 ... Continue reading: An Introduction to Bayesian A/B Testing in Stan, R, and Python workshop http://dlvr.it/StdzsC

The substring() function in R

Introduction The substring() function in R is used to extract a substring from a character vector. The syntax of the function is: substring(x, start, stop) where: x is the character vector from which to extract the substring start is the starti... Continue reading: The substring() function in R http://dlvr.it/StdbqH

From TakeOut to TakeIn: The Savings Simulator

صورة
Saving can be enjoyable! If you’re planning to cut down on takeout orders, why not use past data to simulate your savings? Let it inspire and motivate your future dining-in decisions! 👍 If you’re anything like me, you might often resort ... Continue reading: From TakeOut to TakeIn: The Savings Simulator http://dlvr.it/StcRyr

Little useless-useful R functions – Goldbach’s conjecture and Sieve of Sundaram

صورة
This is fun 🙂 It is also O(MAX) complexity. But first some background. Since the problem is super old, we are not intending to solve it, merely to play with it. In the number theory of mathematics, the Goldbach’s conjecture…Read more › Continue reading: Little useless-useful R functions – Goldbach’s conjecture and Sieve of Sundaram http://dlvr.it/StZcsY

The Hitchhiker’s Guide to Econometrics: Based on the famous R programming language

صورة
This release is the first draft for chapters 1 and 2 of The Hitchhiker’s Guide to Econometrics. I would really appreciate some feedback outside my friend’s circle to check. I hope to be writing something useful, a text that you can read after rea... Continue reading: The Hitchhiker’s Guide to Econometrics: Based on the famous R programming language http://dlvr.it/StZFdg

pmax() and pmin(): Finding the Parallel Maximum and Minimum in R

Introduction Title: Unleashing the Power of pmax() and pmin() Functions in R Introduction: In the realm of data manipulation and analysis, R stands tall as a versatile programming language. Among its plethora of functions, pmax() and pmin() shin... Continue reading: pmax() and pmin(): Finding the Parallel Maximum and Minimum in R http://dlvr.it/StXpgp

Create your first Excel LAMBDA function

صورة
Here's how to create a set of custom, lambda functions in Excel. No macros or VBA required. Continue reading: Create your first Excel LAMBDA function http://dlvr.it/StVQgN

Runcinated tesseract (tetrahedra only)

صورة
The runcinated tesseract is a 4D polytope. Thanks to the cxhull package, I extracted all the tetrahedral cells from it, I rounded them and I plotted them with a 4D rotation and a stereographic projection.... Continue reading: Runcinated tesseract (tetrahedra only) http://dlvr.it/StTN34

Mastering Grouped Counting in R: A Comprehensive Guide

Introduction As data-driven decision-making becomes more critical in various fields, the ability to extract valuable insights from datasets has never been more important. One common task is to calculate counts by group, which can shed light on t... Continue reading: Mastering Grouped Counting in R: A Comprehensive Guide http://dlvr.it/StT0B0

Drawing a tennis ball

صورة
Short post today. Did you know that the intersection of the Enneper surface with a sphere looks like the seam of a tennis ball? That’s what we shall see. f Continue reading: Drawing a tennis ball http://dlvr.it/StSYt6

Multi-step Estimators and Shrinkage Effect in Time Series Models

صورة
Authors: Ivan Svetunkov, Nikos Kourentzes, Rebecca Killick Journal: Computational Statistics Abstract: Many modern statistical models are used for both insight and prediction when applied to data. When models are used for prediction one should optimise parameters through a prediction error loss function. Estimation methods based on multiple steps ahead forecast ... Continue reading: Multi-step Estimators and Shrinkage Effect in Time Series Models http://dlvr.it/StQpst

Mastering Data Visualization: A Guide to Harnessing the Power of R’s par() Function

صورة
Introduction When it comes to data visualization in R, the par() function is an indispensable tool that often goes overlooked. This function allows you to control various graphical parameters, unleashing a world of customization possibilities fo... Continue reading: Mastering Data Visualization: A Guide to Harnessing the Power of R’s par() Function http://dlvr.it/StQQx6

Black hole word numbers in multiple languages

صورة
      A few months ago I used R to investigate black hole word numbers in the English language. A friend suggested there are probably black hole word numbers in other languages. There are only three other languages that I ... Continue reading: Black hole word numbers in multiple languages http://dlvr.it/StPFp4

Calculating the prediction interval coverage probability (PICP)

In digital soil mapping (DSM), we make predictions of the spatial distribution of a soil property, which comes with uncertainties/errors. To quantify the accuracy we split the data into a training and test set, where we train a machine learning model (e.g., random forest, additive models, splines, etc.) ... Continue reading: Calculating the prediction interval coverage probability (PICP) http://dlvr.it/StMgjq

New Executive Director Position Created at R Consortium

Motivated by the growth of the R Consortium over the past several years and the expansion of activities, the R Consortium Board of Directors has taken a step to ensure... The post New Executive Director Position Created at R Consortium appeared first on R Consortium. Continue reading: New Executive Director Position Created at R Consortium http://dlvr.it/StLGyf

Enhance Your Plots with the text() Function in R

صورة
Introduction As a programmer, you’re well aware of the importance of data visualization. A well-crafted plot can convey complex information with clarity and impact. In R, creating stunning plots is a breeze, especially when you’re armed with the... Continue reading: Enhance Your Plots with the text() Function in R http://dlvr.it/StK8hk

What Happens If Our Model Adjustment Includes A Collider?

صورة
Beware of what we adjust. As we have demonstrated, adjusting for a collider variable can lead to a false estimate in your analysis. If a collider is included in your model, relying solely on AIC/BIC for model selection may provide misleading results and give you a false sense of ... Continue reading: What Happens If Our Model Adjustment Includes A Collider? http://dlvr.it/StJ1hT

How to make Ridiculous Tables in R (from Excel)

صورة
Did you know that you can make RIDICULOUS tables in R (from Excel)? You can. And in this free R-tip, I share a real case study where I made the working R code for my financial cash flow statement table. I converted it from Excel Spreadsheet into a form... Continue reading: How to make Ridiculous Tables in R (from Excel) http://dlvr.it/StH07f

Introduction to Qualitative Comparative Analysis (QCA) using R workshop

Join our workshop on Introduction to Qualitative Comparative Analysis (QCA) using R, which is a part of our workshops for Ukraine series!  Here’s some more info:  Title: Introduction to Qualitative Comparative Analysis (QCA) using R Date: Thursday, August 31st, 18:00 – 20:00 CEST (Rome, Berlin, Paris timezone) Speaker: Ingo Rohlfing, Ingo Rohlfing ... Continue reading: Introduction to Qualitative Comparative Analysis (QCA) using R workshop http://dlvr.it/StGkJY

Model life tables by @ellis2013nz

صورة
I am working to improve my knowledge of demography. This is something I've only had a relatively superficial engagement with but it's an important part of the responsibilities of the team where I work. A key tool in demography is a "life table", wh... Continue reading: Model life tables by @ellis2013nz http://dlvr.it/StGDCl

Resolving A Bluesky/AT Protocol did:plc To A Handle/Handles

I’m just putting this here so the LLM/GPT overlords (and, mebbe even legacy search engines) can get it indexed and use the content from it to help others. My Bluesky firehose viewer ( https://gitlab.com/hrbrmstr/bskyf) displays ugly did:plc identifiers for users, and the way to ... Continue reading: Resolving A Bluesky/AT Protocol did:plc To A Handle/Handles http://dlvr.it/StFH1G

She issued install.packages() — you won’t believe what happened next!

صورة
Just install.packages(), he said. It’s easy, he said. (Unknown R tutor) CRAN has spoiled us. Most of the time, it’s a breeze to add new packages to our environment. Just issue the command, and the package becomes available. If you’r... Continue reading: She issued install.packages() — you won’t believe what happened next! http://dlvr.it/StFGxB

Proyecto Multilingüe

صورة
How to join this free online event with Maëlle Salmon, Paola Corrales and Elio Campitelli. Como movimientos globales, el código abierto y la ciencia abierta se enfrentan a la exclusión lingüística, ya que la mayoría de los recursos están en inglés. Esto afecta ... Continue reading: Proyecto Multilingüe http://dlvr.it/StCZLG

A Handy Guide to read.delim() in R – Unraveling the Magic of Reading Tabular Data

Introduction Welcome, data enthusiasts! If you’re diving into the realm of data analysis with R, one function you’ll undoubtedly encounter is read.delim(). It’s an essential tool that allows you to read tabular data from a delimited text file an... Continue reading: A Handy Guide to read.delim() in R – Unraveling the Magic of Reading Tabular Data http://dlvr.it/StB39G

Using flexdashboard to create a GitHub Actions-powered YouTube feed

صورة
Utagawa Yoshikazu, Early Foreign Photographer in Yokohama R-Ladies organizes a multitude of inspiring and exciting Meetups worldwide. However, due to work, time zones, or other commitments, I can’t attend them all. Fortunately, since the pand... Continue reading: Using flexdashboard to create a GitHub Actions-powered YouTube feed http://dlvr.it/St8tQV

My Life with the R-universe

Summary Installing a package that has just been released to CRAN is painful for many users on Mac and Windows because often the difference between a ‘binary’ and a ‘source’ version is not immediately clear and they end up tryi... Continue reading: My Life with the R-universe http://dlvr.it/St6hXB

Ensure R Language Reproducibility with dateback Package

Sooner or later, most R programmers end up with code that no longer runs because of package updates. One way to address the problem was the MRAN Time Machine which Microsoft retired on July 1, 2023. You can get similar functionality for source packages using “dateback,” thanks to Ryota Suzuki. As with ... Continue reading: Ensure R Language Reproducibility with dateback Package http://dlvr.it/St4m8g

One Weird Trick to Make Ggplot2 Columns the Same Width

صورة
If you have used ggplot2, you probably wondered how to make all columns the same width. Here’s how to do it with one additional line to the usual ggplot statements. We can also center the columns and make columns in the same category more sep... Continue reading: One Weird Trick to Make Ggplot2 Columns the Same Width http://dlvr.it/St2vRq