October 2019

My First R Package (Part 3)

October 12, 2019 | 0 Comments

After refactoring my programming so that it was only about 10 lines of code, using 12 functions I wrote an loaded in via the source command, I went through all the steps in Part 1 of this blog post and Part 2 of this blog post to set up the R package infrastructure using ...
[Read more...]

Hyper-Parameter Optimization of General Regression Neural Networks

October 12, 2019 | 0 Comments

A major advantage of General Regression Neural Networks (GRNN) over other types of neural networks is that there is only a single hyper-parameter, namely the sigma. In the previous post (https://statcompute.wordpress.com/2019/07/06/latin-hypercube-sampling-in-hyper-parameter-optimization), I’ve shown how to use the random search strategy to find a close-to-optimal value ...
[Read more...]

My First R Package (Part 2)

October 12, 2019 | 0 Comments

In Part 1, I set up RStudio with usethis, and created my first Minimum Viable R Package (MVRP?) which was then pushed to Github to create a new repository. I added a README: Things were moving along just fine, until I got this unkind message (what do you mean NOT an ...
[Read more...]

My First R Package (Part 1)

October 12, 2019 | 0 Comments

(What does this new package do? Find out here.) I have had package-o-phobia for years, and have skillfully resisted learning how to build a new R package. However, I do have a huge collection of scripts on my hard drive with functions in them, and I keep a bunch of ...
[Read more...]

Autumn Barnsley Fern

October 12, 2019 | 0 Comments

Intro I was playing around generating fractals in R when I realized the monochromatic green Barnsely Fern I had on my screen didn’t quite look like the leaves I could see outside my window. It was already Fall. In this post I describe a technique to generate a Barnsley ...
[Read more...]

Discover Offensive Programming

October 12, 2019 | 0 Comments

Package wyz.code.offensiveProgramming version 1.1.12 is available on CRAN. If you are interested in reducing time and efforts to implement and debug R code, to generate R documentation, to generate test code, then you may consider using this package...
[Read more...]

A Shiny Intro Survey to an Open Science Course

October 12, 2019 | 0 Comments

Last week, we started a new course titled “Statistical Programming and Open Science Methods”. It is being offered under the research program of TRR 266 “Accounting for Transparency” and enables students to conduct data-based research so that...
[Read more...]

Cluster multiple time series using K-means

October 12, 2019 | 0 Comments

I have been recently confronted to the issue of finding similarities among time-series and though about using k-means to cluster them. To illustrate the method, I’ll be using data from the Penn World Tables, readily available in R (inside the {pwt9} package): library(tidyverse) library(lubridate) library(pwt9) library(... [Read more...]

Attribution modelling in R

October 12, 2019 | 0 Comments

Attribution modelling in R an example Here I am going into some examples in attribution modelling in R. It is a complex topic and much more can be said about it than I will be able to do here. I will here go hands on mostly into the markov model ...
[Read more...]

GitHub Streak: Round Six

October 12, 2019 | 0 Comments

Five ago I referenced the Seinfeld Streak used in an earlier post of regular updates to to the Rcpp Gallery: This is sometimes called Jerry Seinfeld’s secret to productivity: Just keep at it. Don’t break the streak. and then showed the first ch... [Read more...]

GitHub Streak: Round Six

October 12, 2019 | 0 Comments

Five ago I referenced the Seinfeld Streak used in an earlier post of regular updates to to the Rcpp Gallery: This is sometimes called Jerry Seinfeld’s secret to productivity: Just keep at it. Don’t break the streak. and then showed the first ch... [Read more...]

Loading packages efficiently

October 11, 2019 | 0 Comments

Problem Especially in a project with many different scripts, it can be challenging to keep track of all the packages you need to load. It’s also easy to lose track of whether or not you’ve incorporated package loading into the script itself until you switch to a new ...
[Read more...]

Replicating Yankee Institute Risk Score Over 15 Years

October 11, 2019 | 0 Comments

Warning Signs - Part II As mentioned in part I of this series Connecticut City Unfunded Pension and OPEB Liabilities Over Time, we intend to look at the evolution of city financial vulnerability over time. The metric put forth in the Yankee report ... [Read more...]

Opioid prescribing habits in Texas

October 11, 2019 | 0 Comments

A paper I worked on was just published in a medical journal. This is quite an odd thing for me to be able to say, given my academic background and the career path I have had, but there you go! The first author of this paper is a long-time friend ...
[Read more...]

Help support GetDFPData

October 11, 2019 | 0 Comments

The shiny version of GetDFPData is currently hosted in a private server at DigitalOcean. A problem with the basic (5 USD) server I was using is with the low amount of available memory (RAM and HD). With that, I had to limit all xlsx queries for the ... [Read more...]

Explaining Predictions: Boosted Trees Post-hoc Analysis (Xgboost)

October 11, 2019 | 0 Comments

Recap We’ve covered various approaches in explaining model predictions globally. Today we will learn about another model specific post hoc analysis. We will learn to understand the workings of gradient boosting predictions. Like past posts, the Clevaland heart dataset as well as tidymodels principle will be used. Refer to ...
[Read more...]

if ifelse() had more if’s

October 11, 2019 | 0 Comments

Problem The ifelse() function only allows for one “if” statement, two cases. You could add nested “if” statements, but that’s just a pain, especially if the 3+ conditions you want to use are all on the same level, conceptually. Is there a way to specify multiple conditions at the same ...
[Read more...]
1 5 6 7 8 9 11

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)