Blog Archives

Why use R? Five reasons.

March 27, 2014
By
Why use R? Five reasons.

In this post I will go through 5 reasons: zero cost, crazy popularity, awesome power, dazzling flexibility, and mind-blowing support. I believe R is the best statistical programming language to learn. As a blogger who has contributed over 150 posts in Stata and over 100 in R I have extensive experience with both a proprietary statistical programming language...

Read more »

Estimating Variance as a Function of Treatment Rank Class

March 24, 2014
By

Imagine that we have a treatment that we give to five different groups of individuals.  Each individual has a variable response which as a unique mean and variance based on the treatment.  We do not know how the means will change but we belie...

Read more »

It is time for RData files to become the standard for Data Transfer

March 20, 2014
By
It is time for RData files to become the standard for Data Transfer

(This article was first published on Econometrics by Simulation, and kindly contributed to R-bloggers) It is time Rdata files become the primary means of disseminating publicly available data online.1. R is the most efficient Statistical software at compressing dataI was recently attempting to download weather data from the US government and found myself stymied because the dataset I wanted...

Read more »

Text Mining Gun Deaths Data

March 13, 2014
By
Text Mining Gun Deaths Data

In this post I will explore public data being collected by Slate.  I previously released code using a much early set of this data demonstrating how to turn this data into an animated map.This data began collection as a public response to the horri...

Read more »

Ever wonder how popular your favorite R functions are?

March 7, 2014
By
Ever wonder how popular your favorite R functions are?

How's that fried pickle sandwich treating you?  Perhaps your taste in R  functions are less bizarre than your taste in R commands?Now you can easily find out using this new shiny app!  In this post I use the R function frequency table co...

Read more »

The Star Puzzle

March 4, 2014
By
The Star Puzzle

The Star Puzzle is a puzzle presented on The Math Forum.  I became aware of this problem by noticing the article and solution posted on Quantitative Decisions article section. It asks the question, "How many triangles, quadrilaterals, and irregula...

Read more »

Easily generate correlated variables from any distribution

February 27, 2014
By
Easily generate correlated variables from any distribution

In this post I will demonstrate in R how to draw correlated random variables from any distributionThe idea is simple.  1. Draw any number of variables from a joint normal distribution. 2. Apply the univariate normal CDF of variables to derive pro...

Read more »

Using MongoHQ to build a Shiny Hit Counter

February 6, 2014
By

In serveral previous posts I have posted shiny applications which temporarily store data on shiny servers such as hit counters or the survey tool which I created,  These do not work in the long term since shiny will restart its servers without war...

Read more »

Stick Figure Function Fun – R

January 31, 2014
By
Stick Figure Function Fun – R

I have created a stick figure generating function for the purposes of adding a human figure as a demonstration of scale to some of my graphs as well as potentially emoticons to my shiny/concerto applications.You can change basic graphing parameters li...

Read more »

Incidental Parameters Problem with Binary Response Data and Unobserved Individual Effects

December 5, 2013
By
Incidental Parameters Problem with Binary Response Data and Unobserved Individual Effects

It is a well known problem that in some models as the number of observations becomes large, econometric estimators fail to converge on consistent estimators.  The leading case of this is when estimating a binary response model with panel data with...

Read more »