matlabr: a Package to Calling MATLAB from R with system

April 8, 2015
By
matlabr: a Package to Calling MATLAB from R with system

In my research, I primarily use R, but I try to use existing code if available. In neuroimaging and other areas, that means calling MATLAB code. There are some existing solutions for the problem of R to MATLAB: namely the R.matlab package and the RMatlab package (which can call R from MATLAB as well). I

Read more »

Association Rules and Market Basket Analysis with R

April 8, 2015
By

In today's data-oriented world, just about every retailer has amassed a huge database of purchase transaction. Each transaction consists of a number of products that have been purchased together. A natural question that you could answer from this database is: What products are typically purchased together? This is called Market Basket Analysis (or Affinity Analysis). A closely related question...

Read more »

Mixing Numbers and Symbols in Time Series Charts

April 8, 2015
By
Mixing Numbers and Symbols in Time Series Charts

One of the things I’ve been trying to explore with my #f1datajunkie projects are ways of representing information that work both in a glanceable way as well as repaying deeper reading. I’ve also been looking at various ways of using text labels rather than markers to provide additional information around particular data points. For example,

Read more »

Discovering Shiny

April 8, 2015
By
Discovering Shiny

It is not an experiment if you know it is going to work (Jeff Bezos) From time to time, I discover some of my experiments translated into Shiny Apps, like this one. Some days ago, I discovered one of these translations and I contacted the author, who was a guy from Vietnam called Vu Anh. … Continue reading...

Read more »

The Logical Invest Enhanced Bond Rotation Strategy (And the Importance of Dividends)

April 7, 2015
By
The Logical Invest Enhanced Bond Rotation Strategy (And the Importance of Dividends)

This post will display my implementation of the Logical Invest Enhanced Bond Rotation strategy. This is a strategy that indeed … Continue reading →

Read more »

Reader Morghulis

April 7, 2015
By
Reader Morghulis

TL;DR: Memento mori. After reading too much Seneca, I’m meditating on death like a statistician, by counting how many of GRRM’s readers did not even survive to see the HBO show (much less the end of the book series). Rough … Continue reading →

Read more »

an email exchange about integral representations

April 7, 2015
By
an email exchange about integral representations

I had an interesting email exchange with a (German) reader of Introducing Monte Carlo Methods with R in the past days, as he had difficulties with the validation of the accept-reject algorithm via the integral in that it took me several iterations to realise the

Read more »

White Matter Segmentation in R

April 7, 2015
By
White Matter Segmentation in R

Goals and Overall Approach We will use multiple packages and pieces of software for white matter (and gray matter/cerebro spinal fluid (CSF)) segmentation. The overall approach will be, with the required packages in parentheses: N4 Inhomogeneity Bias-Field Correction (extrantsr and ANTsR) Brain extraction using BET and additional tools (extrantsr and fslr) FAST for tissue-class segmentation.

Read more »

Exploring San Francisco with choroplethrZip

April 7, 2015
By
Exploring San Francisco with choroplethrZip

by Ari Lamstein Introduction Today I will walk through an analysis of San Francisco Zip Code Demographics using my new R package choroplethrZip. This package creates choropleth maps of US Zip Codes and connects to the US Census Bureau. A choropleth is a map that shows boundaries of regions (such as zip codes) and colors those regions according to...

Read more »

Design patterns for action buttons

April 7, 2015
By
Design patterns for action buttons

Action buttons can be tricky to use in Shiny because they work differently than other widgets. Widgets like sliders and select boxes maintain a value that is easy to use in your code. But the value of an action button is arbitrary. What should you do with it? Did you know that you should almost

Read more »

A Sankey Plot with Uniform Coloured Edges

April 7, 2015
By
A Sankey Plot with Uniform Coloured Edges

Following up on my previous post about generating Sankey plots with the riverplot package. It's also possible to generate plots which have constant coloured edges. Here's how (using some of the data structures from the previous post too): The post A Sankey Plot with Uniform Coloured Edges appeared first on Exegetic Analytics.

Read more »

Test Driven Analysis

April 7, 2015
By
Test Driven Analysis

I mused about Test Driven Analysis on this blog before, but it was Richard Pugh's talk on SAS to R Migration at LondonR last week that brought the topic back into my mind and clarified a few things.Rich's presentation focused on the challenge of how to...

Read more »

scalable Bayesian inference for the inverse temperature of a hidden Potts model

April 6, 2015
By
scalable Bayesian inference for the inverse temperature of a hidden Potts model

Matt Moores, Tony Pettitt, and Kerrie Mengersen arXived a paper yesterday comparing different computational approaches to the processing of hidden Potts models and of the intractable normalising constant in the Potts model. This is a very interesting paper, first because it provides a comprehensive survey of the main methods used in handling this annoying normalising

Read more »

Part 4a: Modelling – predicting the amount of rain

April 6, 2015
By
Part 4a: Modelling – predicting the amount of rain

In the fourth and last part of this series, we will build several predictive models and evaluate their accuracies. In Part 4a, our dependent value will be continuous, and we will be predicting the daily amount of rain. Then, in Part 4b, we will deal with the case of a binary outcome, which means we will assign probabilities to...

Read more »

Predicting Mobile Phone Prices

April 6, 2015
By
Predicting Mobile Phone Prices

Recently a colleague of mine showed me a nauseating interactive scatterplot that plots mobile phones according to two dimensions of the user’s choice from a list of possible dimensions.  Although the interactive visualization was offensive to my tastes, the JSON … Continue reading →

Read more »

The Logical Invest “Hell On Fire” Replication Attempt

April 6, 2015
By
The Logical Invest “Hell On Fire” Replication Attempt

This post is about my replication attempt of Logical Invest’s “Hell On Fire” strategy — which is its Universal Investment … Continue reading →

Read more »

SWMPr 2.0.0 now on CRAN

April 5, 2015
By
SWMPr 2.0.0 now on CRAN

I’m pleased to announce that my second R package, SWMPr, has been posted on CRAN. I developed this package to work with water quality time series data from the System Wide Monitoring Program (SWMP) of the National Estuarine Research Reserve System (NERRS). SWMP was established in 1995 to provide continuous environmental data at over 300

Read more »

Hierarchical Two Compartimental PK Model

April 5, 2015
By

In this post I am running the Theoph dataset from MEMSS (Data sets and sample analyses from Pinheiro and Bates, "Mixed-effects Models in S and S-PLUS" (Springer, 2000)) in a JAGS model. To quote the MEMSS manual:'Boeckmann, Sheiner and Beal (1994...

Read more »

Geomorph update 2.1.4 Now Available!

April 4, 2015
By

Geomorph users,We have uploaded version 2.1.4 of geomorph to CRAN. The windows and mac binaries have been compiled and the tarball is available*.Small Changes:warpRefMesh() generalised - now takes a mesh3d object (i.e. made from read.ply()) rather...

Read more »

Understanding R6: New OO system in R

April 4, 2015
By

Dear all, recently I went through on the R6 OO system in R and was fascinated by its sleek network of environments. I have written a post whatever I could understand of the package. Click on  http://rpubs.com/sumprain/R6 for the post.Comments and ...

Read more »

Tips & Tricks 8: Examining Replicate Error

April 4, 2015
By

Geomorph users,When starting out in a geometric morphometrics study, the common questions are ones of repeatability and measurement error.How much of the variation in the Procrustes residuals is due to human (digitizing) error? How much is du...

Read more »

How and why to return functions in R

April 3, 2015
By
How and why to return functions in R

One of the advantages of functional languages (such as R) is the ability to create and return functions “on the fly.” We will discuss one good use of this capability and what to look out for when creating functions in R. Why wrap/return functions? One of my favorite uses of “on the fly functions” is … Continue reading...

Read more »

Small Area Estimation 101: old materials posted

April 3, 2015
By
Small Area Estimation 101: old materials posted

I never got around to polishing my Small Area Estimation (SAE) “101” tutorial materials that I promised a while ago. So here they are, though still unedited and not as clean / self-explanatory as I’d like. The slides introduce a … Continue reading →

Read more »

DeployR 7.4 released

April 3, 2015
By

A new version of DeployR, the server-based framework that provides simple and secure R integration for application developers, is now available. (If you're new to DeployR, take a look at the DeployR Overview or download the white paper, Using DeployR to Solve the R Integration Problem.) This update brings several new features, including: New R Session Process Controls, which...

Read more »

Bags, Balls and the Hypergeometric Distribution

April 3, 2015
By
Bags, Balls and the Hypergeometric Distribution

A friend came to me with a question. The original question was a little complicated, but in essence it could be explained in terms of the familiar urn problem. So, here's the problem: you have an urn with 50 white balls and 9 black balls. The black balls are individually numbered. Balls are drawn from The post

Read more »

R Tutorial on Reading and Importing Excel Files into R

April 2, 2015
By
R Tutorial on Reading and Importing Excel Files into R

Why an R Tutorial on Reading and Importing Excel Files into R is necessary As most of you know, Excel is a spreadsheet application developed by Microsoft. It is an easy accessible tool for organizing, analyzing and storing data in tables and has a widespread use in many different application fields all over the world. The post

Read more »

WW1 Monthly Casualties by Fronts and Belligerents

April 2, 2015
By
WW1 Monthly Casualties by Fronts and Belligerents

GithubI've been reading a few books on WW1 and wanted to see a time series plot of battle casualty/pow by country to get a better understanding of how the conflict fits together. I couldn't find any database for military casualties in WW1 but Wikipedia...

Read more »

Recruitment Chapter for IFAR

April 2, 2015
By
Recruitment Chapter for IFAR

I have added a very rough draft of the Recruitment chapter to the Introduction to Fisheries Analysis with R (IFAR) page.  This chapter is a complete re-working of the old Stock-Recruitment vignette and includes a section on fitting non-linear stock-recruitment … Continue reading →

Read more »

map projections in oce

April 2, 2015
By
map projections in oce

Introduction The latest version (4.9.0) of the PROJ.4 library is being incorporated into the development version of the oce R package. The work is not finalized yet, but I thought it might be useful to share an early version of the test suite, so people could get an idea of the upcoming capabilities. Note that some projections work quite poorly in oce at the...

Read more »