Need to Code a Difficult Pharma Stats Table? The R Tables for Regulatory Submissions (RTRS) Working Group Wants to Know

[This article was first published on R Consortium, 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 if you have a blog, or here if you don’t. The R Consortium’s R Tables for Regulatory Submissions (RTRS) Working Group has … Read more

Categories R Tags ExcerptFavorite

Advent of 2021, Day 6 – Setting up IDE

[This article was first published on R – TomazTsql, 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 if you have a blog, or here if you don’t. Series of Apache Spark posts: Let’s look into the IDE that … Read more

Categories R Tags ExcerptFavorite

Shiny Weekly: News from the R Shiny Community

Shiny Weekly has officially launched! The Shiny Weekly newsletter is our way of creating a central resource for R Shiny news from the R community. We’re so thankful to those who manage R news aggregators and to those of you who post quality, informative content. We feel that a centralized newsletter for Shiny has been … Read more

Categories R Tags ExcerptFavorite

Why R? 2021 Jumping Rivers Session

[This article was first published on Why R? Foundation, 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 if you have a blog, or here if you don’t. This year we are organizing the fifth edition of Why R? … Read more

Categories R Tags ExcerptFavorite

A 2nd look at vaccination breakthroughs in Switzerland

[This article was first published on Mirai Solutions, 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 if you have a blog, or here if you don’t. Our Covid19 app provides a global view of the pandemic, but how … Read more

Categories R Tags ExcerptFavorite

Indexing from zero in R

[This article was first published on R on Tea & Stats, 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 if you have a blog, or here if you don’t. Everybody knows that R is an inferior programming language, … Read more

Categories R Tags ExcerptFavorite

9 new books added to Big Book of R

06 December 2021 Every time I update Big Book of R I’m blown away by how much good stuff is out there! In this release there’s 9 new books which covers the widest range of topics of any release to date :). Thanks to Sivuyile Nzimeni for one of the adds! Thinking Outside The Grid … Read more

Categories R Tags ExcerptFavorite

Heterogeneous Treatment Effects with Instrumental Variables: A Causal Machine Learning Approach

[This article was first published on YoungStatS, 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 if you have a blog, or here if you don’t. Problem Setting In our forthcoming paper on Annals of Applied Statistics, we propose … Read more

Categories R Tags ExcerptFavorite

Advent of 2021, Day 5 – Setting up Spark Cluster

[This article was first published on R – TomazTsql, 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 if you have a blog, or here if you don’t. Series of Apache Spark posts: We have explore the Spark architecture … Read more

Categories R Tags ExcerptFavorite

Easy Interpretations of ADF Test in R

############################################################################ # This R function helps to interpret the output of the urca::ur.df function. # The rules are based on https://stats.stackexchange.com/questions/ # 24072/interpreting-rs-ur-df-dickey-fuller-unit-root-test-results # # urdf is the output of the urca::ur.df function # level is one of c(“1pct”, “5pct”, “10pct”) # # Author: Hank Roark # Date: October 2019 ############################################################################ interp_urdf – function(urdf, level=“5pct”) {      # urdf = lt.adf.df.trend$LRY   # level = “5pct”      if(class(urdf) != “ur.df”)      stop(‘parameter is not of class ur.df from urca package’)   if(!(level %in% c(“1pct”, “5pct”, “10pct”) ) )      stop(‘parameter level is not one of 1pct, 5pct, or 10pct’)      #cat(“========================================================================\n”)   cat( paste(“At the”, level, “level:\n”) )     cat(“The model is of type none : “); print([email protected]$call$formula)     tau1_teststat_wi_crit = tau1_teststat > tau1_crit     if(tau1_teststat_wi_crit) {       cat(“tau1: The null hypothesis is not rejected, unit root is present\n”)     } else {       cat(“tau1: The null hypothesis is rejected, unit root is not present\n”)     }     #cat(“The model is of type drift\n”)     cat(“The model is of type drift : “); print([email protected]$call$formula)     tau2_teststat_wi_crit = tau2_teststat > tau2_crit     phi1_teststat_wi_crit = phi1_teststat  phi1_crit     if(tau2_teststat_wi_crit) {       # Unit root present branch       cat(“tau2: The first null hypothesis is not rejected, unit root is present\n”)       if(phi1_teststat_wi_crit) {         cat(“phi1: The second null hypothesis is not rejected, unit root is present\n”)         cat(”      and there is no drift.\n”)       } else {         cat(“phi1: The second null hypothesis is rejected, unit root is present\n”)         cat(”      and there is drift.\n”)       }     } else {       # Unit root not present branch       cat(“tau2: The first null hypothesis is rejected, unit root is not present\n”)       if(phi1_teststat_wi_crit) {         cat(“phi1: The second null hypothesis is not rejected, unit root is present\n”)         cat(”      and there is no drift.\n”)         warning(“This is inconsistent with the first null hypothesis.”)       } else {         cat(“phi1: The second null hypothesis is rejected, unit root is not present\n”)         cat(”      and there is drift.\n”)       } … Read more

Categories R Tags ExcerptFavorite

Writing Functions in R: Working Example One

[This article was first published on R – Mathew Analytics, 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 if you have a blog, or here if you don’t. A. Background We usually want to write reusable code that … Read more

Categories R Tags ExcerptFavorite

Why R? 2021 Invited Talks

[This article was first published on Why R? Foundation, 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 if you have a blog, or here if you don’t. ShareTweet This year we are organizing the fifth edition of Why … Read more

Categories R Tags ExcerptFavorite

Augmented Dickey-Fuller (ADF) Test in R

#========================================================# # Quantitative ALM, Financial Econometrics & Derivatives  # ML/DL using R, Python, Tensorflow by Sang-Heon Lee  # # https://kiandlee.blogspot.com #——————————————————–# # Augmented Dickey-Fuller (ADF) Test #========================================================# graphics.off()  # clear all graphs rm(list = ls()) # remove all files from your workspace library(urca)  # denmark, ur.df #======================================================== # Data #======================================================== data(denmark) # level data lv – denmark[,c(“LRM”,“LRY”,“IBO”,“IDE”)] nr_lv – nrow(lv) # 1st differenced data df – as.data.frame(diff(as.matrix(lv), lag = 1)) colnames(df) – c(“LRM”, “LRY”, “IBO”, “IDE”) #======================================================== # Summary of ADF test of level variables #======================================================== lt.adf.lv.none  – list(     LRM = ur.df(lv$LRM, type=‘none’, selectlags = c(“BIC”)),     LRY = ur.df(lv$LRY, type=‘none’, selectlags = c(“BIC”)),     IBO = ur.df(lv$IBO, type=‘none’, selectlags = c(“BIC”)),     IDE = ur.df(lv$IDE, type=‘none’, selectlags = c(“BIC”))) lt.adf.lv.drift – list(     LRM = ur.df(lv$LRM, type=‘drift’, selectlags = c(“BIC”)),     LRY = ur.df(lv$LRY, type=‘drift’, selectlags = c(“BIC”)),     IBO = ur.df(lv$IBO, type=‘drift’, selectlags = c(“BIC”)),     IDE = ur.df(lv$IDE, type=‘drift’, selectlags = c(“BIC”))) lt.adf.lv.trend – list(     LRM = ur.df(lv$LRM, type=‘trend’, selectlags = c(“BIC”)),     LRY = ur.df(lv$LRY, type=‘trend’, selectlags = c(“BIC”)),     IBO = ur.df(lv$IBO, type=‘trend’, selectlags = c(“BIC”)),     IDE = ur.df(lv$IDE, type=‘trend’, selectlags = c(“BIC”))) #======================================================== # Summary of ADF test of 1st differenced variables #======================================================== lt.adf.df.none  – list(     LRM = ur.df(df$LRM, type=‘none’, selectlags = c(“BIC”)),     LRY = ur.df(df$LRY, type=‘none’, selectlags = c(“BIC”)),     IBO = ur.df(df$IBO, type=‘none’, selectlags = c(“BIC”)),     IDE = ur.df(df$IDE, type=‘none’, selectlags = c(“BIC”))) lt.adf.df.drift – list(     LRM = ur.df(df$LRM, type=‘drift’, selectlags = c(“BIC”)),     LRY = ur.df(df$LRY, type=‘drift’, selectlags = c(“BIC”)),     IBO = ur.df(df$IBO, type=‘drift’, selectlags = c(“BIC”)),     IDE = ur.df(df$IDE, type=‘drift’, selectlags = c(“BIC”))) lt.adf.df.trend – list(     LRM = ur.df(df$LRM, type=‘trend’, selectlags = c(“BIC”)),     LRY = ur.df(df$LRY, type=‘trend’, selectlags = c(“BIC”)), … Read more

Categories R Tags ExcerptFavorite

Sea Monsters that Lost their Way

[This article was first published on R | Quantum Jitter, 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 if you have a blog, or here if you don’t. library(tidyverse) library(tidymodels) library(probably) library(finetune) library(textrecipes) library(stopwords) library(wesanderson) library(kableExtra) library(clock) library(glue) … Read more

Categories R Tags ExcerptFavorite

Where to ask for help when coding in R

[This article was first published on R on R (for ecology), 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 if you have a blog, or here if you don’t. When learning R, it can be tough to figure … Read more

Categories R Tags ExcerptFavorite

Mapping iNaturalist Data in R

[This article was first published on R-posts.com, 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 if you have a blog, or here if you don’t. This post was originally published from IGIS as a Tech Note. Enjoy! Introduction … Read more

Categories R Tags ExcerptFavorite

R Skopje in North Macedonia Talks About the Challenges of Virtual Events for Smaller Communities

[This article was first published on R Consortium, 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 if you have a blog, or here if you don’t. The R-Consortium talked to Novica Nakov of R Skopje about the challenges … Read more

Categories R Tags ExcerptFavorite

Advent of 2021, Day 2 – Installing Apache Spark

[This article was first published on R – TomazTsql, 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 if you have a blog, or here if you don’t. Series of Apache Spark posts: Today, we will look into installing … Read more

Categories R Tags ExcerptFavorite

My Courses are now Free

[This article was first published on R – AriLamstein.com, 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 if you have a blog, or here if you don’t. A few months ago I announced a change in direction: rather … Read more

Categories R Tags ExcerptFavorite

Why R? 2021 Keynotes

[This article was first published on Why R? Foundation, 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 if you have a blog, or here if you don’t. This year we are organizing the fifth edition of Why R? … Read more

Categories R Tags ExcerptFavorite

Two day trainings ‘Introduction to Responsible ML in R or Python’— schedule for 2022

Based on our experience in the area of Responsible Machine Learning, developed a unique two-day hands-on training. Jump into the topic of eXplainable Artificial Intelligence with our trainers. The training is conducted once a month in small groups online. Small groups encourage questions and the interactions within the group. Dates of upcoming trainings in 2022: 21–22 … Read more

Categories R Tags ExcerptFavorite

What statistical test should I do?

[This article was first published on R on Stats and R, 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 if you have a blog, or here if you don’t. Being a teaching assistant in statistics for students with … Read more

Categories R Tags ExcerptFavorite

{emayili} Sending Encrypted Email

[This article was first published on R – datawookie, 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 if you have a blog, or here if you don’t. In a previous post I documented what I had learned while … Read more

Categories R Tags ExcerptFavorite

R Consortium Funding Delivers New Format for the R Journal

[This article was first published on R Consortium, 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 if you have a blog, or here if you don’t. By Di Cook, Mitch O’Hara-Wild, H. Sherry Zhang, Stephanie Kobakian, Michael Kane, … Read more

Categories R Tags ExcerptFavorite

Why R? 2021 agenda is published!

[This article was first published on Why R? Foundation, 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 if you have a blog, or here if you don’t. We are 10 days before the fifth edition of Why R? … Read more

Categories R Tags ExcerptFavorite

Advent of 2021, Day 1 – What is Apache Spark?

[This article was first published on R – TomazTsql, 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 if you have a blog, or here if you don’t. Apache Spark is an open-source unified analytics engine for large-scale data … Read more

Categories R Tags ExcerptFavorite

The virtual 2021 R Government & Public Sector Conference is coming December 9th & 10th

We are so excited to bring back the fourth annual Government and Public Sector R Conference to a computer screen near you! Join us on December 9th and 10th for a jam-packed two-day conference filled with an incredible lineup of speakers across the government and public sector space. Buy your tickets here!  Over the two … Read more

Categories R Tags ExcerptFavorite

Advent of Code 2021

[This article was first published on R on Tea & Stats, 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 if you have a blog, or here if you don’t. It’s that time of year again. And not just … Read more

Categories R Tags ExcerptFavorite

2021-04 Luminance Masks in R Graphics

[This article was first published on R – Stat Tech, 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 if you have a blog, or here if you don’t. This document describes an extension of the support for masks … Read more

Categories R Tags ExcerptFavorite

Gold-Mining Week 13 (2021)

[This article was first published on R – Fantasy Football Analytics, 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 if you have a blog, or here if you don’t. Favorite

Categories R Tags ExcerptFavorite

R shiny web apps at scale on AWS with ShinyProxy

[This article was first published on R – YakData, 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 if you have a blog, or here if you don’t. Related Favorite

Categories R Tags ExcerptFavorite

A Hiring Manager’s review of the Google Data Analytics Professional Certificate syllabus

30 November 2021 “Is the Google Data Analytics Professional Certificate any good?” Whether you’re a job seeker looking to boost your career or a hiring manager eager to find skilled staff, this is a pertinent question. In this review, I assess the certificate based on the syllabus, and not the course content itself i.e. I … Read more

Categories R Tags ExcerptFavorite

rOpenSci News Digest, November 2021

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 Community call: @ropensci-review-bot help! Tuesday, 07 December 2021 17:00 UTC we’ll share how we are Enhancing Software Peer Review with GitHub Automation. Speakers Arfon Smith, … Read more

Categories R Tags ExcerptFavorite

Why R? 2021 agenda is almost there!

[This article was first published on Why R? Foundation, 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 if you have a blog, or here if you don’t. We are 2 weeks before the fifth edition of Why R? … Read more

Categories R Tags ExcerptFavorite

EARL 2021 charity donation

After another fantastic EARL Conference held online this September, we are delighted to share that we were able to donate £8,000 to DataKind UK. The aim of the Enterprise Applications of the R Langauge Conference is to inform, educate and inspire, and we certainly feel inspired by the great work DataKind UK have done this … Read more

Categories R Tags ExcerptFavorite

AWS Athena dplyr unload

RBloggers|RBloggers-feedburner Intro: This is a quick update on the latest features for RAthena and noctua 2.4.0. Latest features: dbplyr: RAthena and noctua now fully supports dbplyr backend api 2+. dplyr database generics will be deprecated in later versions of the dbplyr package development. This is to future proof RAthena and noctua, while keeping the same … Read more

Categories R Tags ExcerptFavorite

October 2021: “Top 40” New CRAN Packages

[This article was first published on R Views, 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 if you have a blog, or here if you don’t. One hundred forty-one new packages made it to CRAN in October. Here … Read more

Categories R Tags ExcerptFavorite

Vector Autoregressive Model (VAR) using R

#========================================================# # Quantitative ALM, Financial Econometrics & Derivatives  # ML/DL using R, Python, Tensorflow by Sang-Heon Lee  # # https://kiandlee.blogspot.com #——————————————————–# # Vector Autoregressive Model #========================================================# graphics.off()  # clear all graphs rm(list = ls()) # remove all files from your workspace library(urca) # ca.jo, denmark library(vars) # vec2var #======================================================== # Data #======================================================== # forecasting horizon nhor – 12  #——————————————– # quarterly data related with money demand #——————————————– # LRM : logarithm of real money M2 (LRM) # LRY : logarithm of real income (LRY) # LPY : logarithm of price deflator (LPY) # IBO : bond rate (IBO) # IDE : bank deposit rate (IDE) # the period 1974:Q1 – 1987:Q3 #——————————————– # selected variables data(denmark) df.lev – denmark[,c(“LRM”,“LRY”,“IBO”,“IDE”)] m.lev  – as.matrix(df.lev) nr_lev – nrow(df.lev) # quarterly centered dummy variables dum_season – data.frame(yyyymm = denmark$ENTRY) substr.q   – as.numeric(substring(denmark$ENTRY, 6,7)) dum_season$Q2 – (substr.q==2)–1/4 dum_season$Q3 – (substr.q==3)–1/4 dum_season$Q4 – (substr.q==4)–1/4 dum_season    – dum_season[,–1] # Draw Graph str.main – c(     “LRM=ln(real money M2)”, “LRY=ln(real income)”,      “IBO=bond rate”, “IDE=bank deposit rate”) x11(width=12, height = 6);  par(mfrow=c(2,2), mar=c(5,3,3,3)) for(i in 1:4) {     matplot(m.lev[,i], axes=FALSE,         type=c(“l”), col = c(“blue”),          main = str.main[i])          axis(2) # show y axis          # show x axis and replace it with      # an user defined sting vector     axis(1, at=seq_along(1:nrow(df.lev)), … Read more

Categories R Tags ExcerptFavorite

Durability Testing of Stents Using Sensitivity-Based Methods in R

[This article was first published on [R]eliability, 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 if you have a blog, or here if you don’t. The current industry protocol for durability testing of vascular stents and frames involves … Read more

Categories R Tags ExcerptFavorite

Custom Formats in gt Tables

[This article was first published on rstats-tips.net, 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 if you have a blog, or here if you don’t. The “grammar of tables” is used to build tables with the R-package gt. … Read more

Categories R Tags ExcerptFavorite

Predicting viewership for #TidyTuesday Doctor Who episodes

[This article was first published on rstats | Julia Silge, 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 if you have a blog, or here if you don’t. This is the latest in my series of screencasts demonstrating … Read more

Categories R Tags ExcerptFavorite

Creating your google chat R bot in under 5 minutes

[This article was first published on R | Adi Sarid, 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 if you have a blog, or here if you don’t. We use Google workspace as our email and document solution … Read more

Categories R Tags ExcerptFavorite

Frozen percolation on the binary tree is nonendogenous

In frozen percolation on a graph, there is a barrier located on each edge. Initially, the barriers are closed and they are assigned i.i.d. uniformly distributed activation times. At its activation time, a barrier opens, provided it is not frozen. At a fixed set \(\Xi\) of freezing times, all barriers that percolate are frozen. In particular, … Read more

Categories R Tags ExcerptFavorite