Critique of “Projecting the transmission dynamics of SARS-CoV-2 through the postpandemic period” — Part 4: Modelling R, seasonality, immunity

July 6, 2020 | 0 Comments

In this post, fourth in a series (previous posts: Part 1, Part 2, Part 3), I’ll finally talk about some substantive conclusions of the following paper: Kissler, Tedijanto, Goldstein, Grad, and Lipsitch, Projecting the transmission dynamics of SARS-CoV-2 through the postpandemic period, Science, vol. 368, pp. 860-868, 22 May 2020 (released online 14 April 2020).  The […]
[Read more...]

Simulating multiple RCTs to simulate a meta-analysis

July 6, 2020 | 0 Comments

I am currently involved with an RCT that is struggling to recruit eligible patients (by no means an unusual problem), increasing the risk that findings might be inconclusive. A possible solution to this conundrum is to find similar, ongoing trials with... [Read more...]

Create a data transformation pipeline

July 6, 2020 | 0 Comments

All data transformation functions in dplyr can be connected through the pipe %__% operator to create powerful and yet expressive data transformation pipelines. Use the pipe operator %__% to combine multiple dplyr functions into one pipeline %__% filter(___) %__% select(___) %__% arrange(___) Using the %__% operator The pipe operator %__% is a special part of the tidyverse ...
[Read more...]

Rcpp 1.0.5: Several Updates

July 6, 2020 | 0 Comments

Right on the heels of the news of 2000 CRAN packages using Rcpp (and also hitting 12.5 of CRAN package, or one in eight), we are happy to announce release 1.0.5 of Rcpp. Since the ten-year anniversary and the 1.0.0 release release in November 2018, ... [Read more...]

Best Practices for Code Review: R Edition

July 5, 2020 | 0 Comments

A. What is Code Review? Code reviews are traditionally done in the context of a software development team that is building out a new product or feature. The goal is to ensure that anything added to the common code base is free of bugs, follows established coding conventions, and is ...
[Read more...]

Uncanny X-Men: Bayesian take on Dr. Silge’s analysis

July 5, 2020 | 0 Comments

The other day, Dr. Silge from RStudio posted the screencast and blog post of her #TidyTuesday analysis of the Uncanny X-Men data set from Claremont Run Project. In her analysis, she used logistic regression to model the effect of various features of each comic book issue on the likelihood of ...
[Read more...]

Rcpp now used by 2000 CRAN packages–and one in eight!

July 4, 2020 | 0 Comments

As of yesterday, Rcpp stands at exactly 2000 reverse-dependencies on CRAN. The graph on the left depicts the growth of Rcpp usage (as measured by Depends, Imports and LinkingTo, but excluding Suggests) over time. Rcpp was first released in November ... [Read more...]

News in htmlTable 2.0

July 4, 2020 | 0 Comments

The htmlTable 2.0 package was just released on CRAN! It is my most downloaded package with 160 000+ downloads/month and this update is something that I have been wanting to do for a long time. For those of you that never encountered htmlTable it is a package that takes a matrix/data.... [Read more...]

Formatting With ggtext Example

July 3, 2020 | 0 Comments

This is a quick example regarding the ggtext package. It’s one of the many packages that extends ggplot2, with this one having a focus on adding and formatting text in graphs. The particularly interesting thing for me is that it allows Markdown and other formatting of the labels in ... [Read more...]

#28: Welcome RSPM and test-drive with Bionic and Focal

July 3, 2020 | 0 Comments

Welcome to the 28th post in the relatively random R recommendations series, or R4 for short. Our last post was a “double entry” in this R4 series and the newer T4 video series and covered a topic touched upon in this R4 series multiple times: eas... [Read more...]

Sort data frames by columns

July 2, 2020 | 0 Comments

To select areas of interest in a data frame they often need to be ordered by specific columns. The dplyr arrange() function supports data frame orderings by multiple columns in ascending and descending order. Use the arrange() function to sort data f...
[Read more...]

Interactive differential expression analysis with volcano3D

July 2, 2020 | 0 Comments

I am pleased to present volcano3D, an R package which is now available on CRAN! The volcano3D package enables exploration of probes differentially expressed between three groups. Its main purpose is for the visualisation of differentially expressed genes in a three-dimensional volcano plot. These plots can be converted ...
[Read more...]

poorman: Version 0.2.1 Release

July 1, 2020 | 0 Comments

Introduction Welcome to my series of blog posts about my data manipulation package, {poorman}. For those of you that don’t know, {poorman} is aiming to be a replication of {dplyr} but using only {base} R, and therefore be completely dependency free. What’s nice about this series is that ... [Read more...]

word2vec in R

July 1, 2020 | 0 Comments

Learn how to apply word2vec in R on your text in this pdf presentation available at http://bnosac.be/index.php/blog/100-word2vec-in-R. Where we focus on our R package word2vec available at https://github.com/bnosac/word2vec You can view the presentatio... [Read more...]

The pelotonR Package Debut!

July 1, 2020 | 0 Comments

I just released my first open-source package: pelotonR! The package was created to provide users with sample access to Peloton data through R. Learn more at the website: https://lgellis.github.io/pelotonR/
[Read more...]

Tip (4), Variable Explorer for both R and Python in RStudio

July 1, 2020 | 0 Comments

In recent past, frequent usage of both R and Python by Data Scientists are considerably increasing. RStudio is preferred IDE for most of R users, though, there are Editors and Notebooks which serve for both languages, yet, switching between them is not easy. Especially for those who got used to ... [Read more...]

Puzzling Regression Anatomy

July 1, 2020 | 0 Comments

Consider a regression model with the following causal structure: The variable x1 affects y directly and also indirectly via x2. The following R code implements the model and simulates a corresponding data set. set.seed(1) n = 10000 beta1 = 1; bet... [Read more...]
1 2 3 1,661