Blog Archives

Statistical uncertainty with R and pdqr

November 10, 2019
By
Statistical uncertainty with R and pdqr

CRAN has accepted my 'pdqr' package. Here are important examples of how it can be used to describe and evaluate statistical uncertainty. Prologue I am glad to announce that my latest, long written R package ‘pdqr’ is accepted to CRAN. It provides tools for creating, transforming and summarizing custom random variables...

Read more »

Local randomness in R

August 12, 2019
By

One approach of using random number generation inside a function without affecting outer state of random generator. Prologue Let’s say we have a deterministic (non-random) problem for which one of the solutions involves randomness. One very common example of such problem is a function minimization on certain interval: it can be...

Read more »

Arguments of stats::density()

August 5, 2019
By
Arguments of stats::density()

Animated illustrations of how arguments affect output of `stats::density()`. Prologue In R, one of the “go to” functions for kernel density estimation is density() from base R package ‘stats’. Given numeric sample, it returns a set of x-y pairs on estimated density curve. It is also a main “workhorse” for estimating...

Read more »

Announcing pdqr

July 31, 2019
By
Announcing pdqr

Announcing 'pdqr': package for working with custom distribution functions. Prologue I have been working on ‘pdqr’ package for quite some time now. Initially it was intended only for creating custom distribution functions (analogues of base “p”, “d”, “q”, and “r” functions) from numeric sample. However, after couple of breakthrough ideas, it...

Read more »

Transformers, glue!

August 20, 2018
By

General description of transformers functionality in {glue} with some potentially useful examples. Prologue Package {glue} is designed as “small, fast, dependency free” tools to “glue strings to data in R”. To put simply, it provides concise and flexible alternatives for paste() with some additional features: library(glue) x Its “transformer” functionality is an interesting...

Read more »

Elo and EloBeta models in snooker

July 2, 2018
By
Elo and EloBeta models in snooker

Research about adequacy of Elo based models applied to snooker match results. Contains a novel approach (EloBeta) targeted for sport results with variable "best of N" format. Prologue For many years I’ve been following snooker as a sport. It has it all: hypnotic beauty of smart play, elegance of cue strikes...

Read more »

Animating mode variability with tidyverse and tweenr

June 13, 2018
By
Animating mode variability with tidyverse and tweenr

Provided different probability distributions, animate independent sample distributions to demonstrate mode variability. There is a thorough code description with some subtle tips and tricks. Prologue Not so long time ago I encountered the following task: given several groups of samples (one group - several samples from one distribution) make a visual...

Read more »

Harry Potter and rankings with comperank

May 30, 2018
By

Ranking Harry Potter books with comperank package. Prologue Package comperank is on CRAN now. It offers consistent implementations of several ranking and rating methods. Originally, it was intended to be my first CRAN package when I started to build it 13 months ago. Back then I was very curious to learn...

Read more »

General gems of comperes

May 16, 2018
By

Examples of exported functions from comperes package that could be useful for general tasks. Prologue I am very glad to announce that my new package comperes is on CRAN now. It provides tools for managing competition results in a tidy manner as much as possible. For more information go to: Package README. Package...

Read more »

Harry Potter and competition results with comperes

May 8, 2018
By
Harry Potter and competition results with comperes

Exploration of Harry Potter Books Survey results with help of my new comperes package. Prologue About a month ago I decided to add interesting data set to my almost finished (hopefully, soon to be on CRAN) comperes package. Data should represent results of some not ordinary competition. After some thought I...

Read more »

Search R-bloggers

Sponsors

Never miss an update!
Subscribe to R-bloggers to receive
e-mails with the latest R posts.
(You will not see this message again.)

Click here to close (This popup will not appear again)