Monthly Archives: February 2013

Multi-species dynamic occupancy model with R and JAGS

February 24, 2013
By
Multi-species dynamic occupancy model with R and JAGS

This post is intended to provide a simple example of how to construct and make inferences on a multi-species multi-year occupancy model using R, JAGS, and the ‘rjags’ package. This is not intended to be a standalone tutorial on dynamic community occupancy modeling. Useful primary literature references include MacKenzie et al. (2002), Kery and Royle (2007), Royle and Kery...

Read more »

Copying Data from Excel to R and Back

February 23, 2013
By
Copying Data from Excel to R and Back

A lot of times we are given a data set in Excel format and we want to run a quick analysis using R's functionality to look at advanced statistics or make better visualizations. There are packages for importing/exporting data from/to Excel, but I have found them to be hard to work with or only work with old versions of...

Read more »

Pareto plot with ggplot2

February 23, 2013
By

A Pareto chart, named after Vilfredo Pareto, is a type of chart that contains both bars and a line graph, where individual values are represented in descending order by bars, and the cumulative total is represented by the line (quoted from Wikipedia). ...

Read more »

Two papers about RcppEigen and RcppArmadillo published

February 23, 2013
By

Two papers got published recently. The first one is Bates and Eddelbuettel (2013). It is titled Fast and Elegant Numerical Linear Algebra Using the RcppEigen Package, and provides a pretty thorough introduction to our RcppEigen package which uses Rcpp to provide access to the Eigen C++ template library from GNU R. The paper is out as Volume 50, Issue 5 at the (all...

Read more »

The Financial Crisis on Tape Part I

February 23, 2013
By
The Financial Crisis on Tape Part I

Hello and welcome to Joe's Data Diner's first ever post!Today, I will touch on both R and Finance, but I'll try and make it accesible for those with an interest in either and not just Quants like myself!Almost everyone is now aware that asset correlati...

Read more »

Getting Help with R Programming: Useful Survival Skills

Getting Help with R Programming: Useful Survival Skills

Useful Resources to Learn about R on the Internet When I program in R and struggle with something, the first thing that I usually turn to is Google.  I search the relevant function or the desired outcome, and I often find the solutions within the first few hits.  They likely show up in the documentation,

Read more »

Simulating Population Growth in Cities Using R

February 23, 2013
By
Simulating Population Growth in Cities Using R

R is great for anyone who wants to get started on learning Simulation. (Both Discrete Event or Agent-based, with stochastic elements in the process.) This post is inspired by Matt Asher's "quick-and-dirty" R simulation work on Population Growth. Matt u...

Read more »

from OTU table to HEATMAP!

February 23, 2013
By
from OTU table to HEATMAP!

In this tutorial you will learn: what is a heatmap how to create a clean, highly customizable heatmap using heatmap.2 in the gplots package in R how to remove samples with poor output (not very many sequences) how to rearrange your samples by a metadata category how to make a color coded bar above the heatmap

Read more »

Free e-book on Data Science with R

February 22, 2013
By
Free e-book on Data Science with R

A new book by Jeffrey Stanton from Syracuse Iniversity School of Information Studies, An Introduction to Data Science, is now available for free download. The book, developed for Syracuse's Certificate for Data Science, is available under a Creative Commons License as a PDF (20Mb) or as an interactive eBook from iTunes. The book begins with the following clear definition...

Read more »

Shiny 0.4.0 now available

February 22, 2013
By
Shiny 0.4.0 now available

Shiny version 0.4.0 is now available on CRAN. The most visible change is that the API has been slightly simplified. Your existing code will continue to work, although Shiny will print messages about how to migrate your code. Migration should be straightforward, as described below. It will take a bit of work to switch to

Read more »