Bayesian Networks are probabilistic graphical models and they have some neat features which make them very useful for many problems. […]
The post Bayesian Network Example with the bnlearn Package appeared first on Daniel Oehm | Gradient Descending.
[Read more...]
Recently, I was trying to calculate the percentiles of a set of variables within a data set grouped by another variable. However, I quickly ran into the realization that this is not very straight forward when using dplyr’s summarize. Before I demonstrate, let’s load the libraries that we ... [Read more...]
Package descriptives
NMSL53: an overview
Attendance & party loyalty
Health care-related roll calls
Roll call details
Incorporating census data
Summary
Postscript: Vizualizing congressional composition
In this post, we introduce a new R data package, nmlegisdatr, that makes available roll call data for New Mexico’s 53rd (2017-18) State Legislature (NMSL53). While ...
Remember our recent post showing that one can wrangle Markdown files
programmatically without regex? That
tech note showed how to convert Markdown bodies to XML in order to
extract information from them. Now, this post goes one step further and
presents tinkr, a package for
converting .md and .Rmd files ... [Read more...]
(Disclaimer: I’ve no grudge against python programming language per se. I think its equally great. In the following post, I’m merely recounting my experience.)
It’s been quite a while since I last posted. The reasons are numerous, notable being,...
A minor maintenance release of the nanotime package for working with nanosecond timestamps just arrived on CRAN.
nanotime uses the RcppCCTZ package for (efficient) high(er) resolution time parsing and formatting up to nanosecond resolution, and the b... [Read more...]
A new version of RcppAPT – our interface from R to the C++ library behind the awesome apt, apt-get, apt-cache, … commands and their cache powering Debian, Ubuntu and the like – is now on CRAN.
This version is a bit of experiment. I had asked on... [Read more...]
In native R, the user sets the seed for random number generation (RNG) with set.seed(). Random number generators exist in C and C++ too; these need their own seeds, which are not obviously settable by set.seed(). Good news! It can be done.
Introduction
RStudio version 1.1 introduced the Terminal functionality, which does not seem to be getting enough deserved attention and love even though it is very well integrated with the rest of the IDE and can be extremely useful for several daily use-cases.
In this post we will try to cover 4 very ... [Read more...]
Introduction
RStudio version 1.1 introduced the Terminal functionality, which does not seem to be getting enough deserved attention and love even though it is very well integrated with the rest of the IDE and can be extremely useful for several daily use-cases.
In this post we will try to cover 4 very ... [Read more...]
You can use R to to splice and dice tables that have been created with Displayr’s built-in statistical engine. This is particularly handy when you want...
Happy to announce the release of TSstudio 0.1.2 to CRAN. The TSstudio package provides tools for descriptive and predictive analysis of time series data, utilizing the visualization enegin of the plotly package and forecasting models from the forecast, forecastHybrid and bsts packages.
Installation
Install the stable version from CRAN:
Happy to announce the release of TSstudio 0.1.2 to CRAN. The TSstudio package provides tools for descriptive and predictive analysis of time series data, utilizing the visualization enegin of the plotly package and forecasting models from the forecast, forecastHybrid and bsts packages.
Installation
Install the stable version from CRAN:
TL;DR
Background
Initial setup
Solving the Issues
Issue 1: Rescheduling
Solution
Issue 2: Broken Mailing Lists
Solution
Issue 3: Forgetfulness
Solution
Issue 4: Participation
Solution
Automating the process
Wrap up
Note
TL;DR
Organising our journal club meetings took a lot of time. Here’s how I used R and my Raspberry Pi ... [Read more...]
Beginner, Intermediate and Advanced R courses February 2019
This is an announcement of our next set of R courses. There are 4 separate courses taught over 5th-8th February 2019.
You can register with the Centre for Applications in Resource Management... [Read more...]
Dr. Ford’s testimony alleging that Judge Kavanaugh attempted to rape her when she was 15 was extremely difficult to watch as she was and still is deeply traumatized by the event. Kavanaugh’s abrasive and highly rehearsed obstructionist response was even more difficult to watch. In response I decided to ...
You probably saw this XKCD last week, which brought a grimace of recognition to statisticians everywhere: It's so realistic, that Barry Rowlingson was able to reproduce all but two of the "charts" above with a simple R function (and a little help from the xkcd ggplot2 theme): And now for @... [Read more...]
Ah! This makes so much sense. I think I’m biased as I’ve matured into my career with multivariate as a default part of the toolkit! That’s my bias right there.
The 4.0.1 release of simmer, the Discrete-Event Simulator for R, is on CRAN since a couple of weeks ago. There are few changes, notably new getters (get_sources(), get_resources(), get_trajectory()) for simmer environments and some improvements in resource selection policies (see details in help(select)). A new convenience function, ... [Read more...]
In my semi-daily run of brew update I noticed that proj4 had been updated to 5.2. I kinda “squeee“‘d since (as the release notes show) the Equal Earth projection was added to it (+proj=eqearth). As the team who created the projection describes it: “The Equal Earth map projection is ...