## Cross sectional spread of stock returns

June 18, 2012
By

A look at a simplistic measure of stock-picking opportunity. Motivation The interquartile range (the spread of the middle half of the data) has recently been added to the market portrait plots.  Putting those numbers into historical context was the original impulse. However, this led to thinking about change in stock-picking opportunity over time. Data Daily … Continue reading...

## Comparing performance in R, foreach/doSNOW, SAS, and NumPY (MKL)

June 17, 2012
By

This is a follow up to my previous post.  There is a quicker way to compute the function I created (basic cumulative sum) in R.Instead of:function f(x) {   sum = 0;   for (i in seq(1,x)) sum = sum + i   return(su...

## List of Free Online R Tutorials

June 17, 2012
By

According to the post on FREE online R tutorials from universities, I have received many email suggesting more and more tutorials. However some tutorials are not hosted in an academic institutes, so I decided to create this post to list such tutorials. If you know other tutorials, please kindly suggest me by email to [email protected]

## Negros Quake Animation in R

June 17, 2012
By

Taken from a previous post in other website, maps below show the locations of epicenters and sequence of earthquakes that struck Negros last February 6, 2012. The bottom image is the animation these maps using animation package in R. Data was taken fr...

## Summary of community detection algorithms in igraph 0.6

June 17, 2012
By

Based on Launchpad traffic and mailing list responses, Gabor and Tamas will soon be releasing igraph 0.6.  In celebration, I’ll be publishing a number of helpful lists and tables I’ve put together to organize information about igraph.   In…Read more ›

## An exercise in R using local open data

June 17, 2012
By

Last week I went to the “Government Open Data Hack Day” (godhd on twitter) in Birmingham (UK), organised by Gavin Broughton and James Catell. The idea was to get hold of local open data and try and make use of … Continue reading →

## 3D Maps in R

June 16, 2012
By

Talking about elevation, one can also plot a wire frame 3D view of an area using the persp function. Using the same data source from my previous post, 3D view of Marinduque, Philippines was produced using the following code below: ################...

## Why You Shouldn’t Conclude "No Effect" from Statistically Insignificant Slopes

June 16, 2012
By

It is quite common in political science for researchers to run statistical models, find that a coefficient for a variable is not statistically significant, and then claim that the variable "has no effect." This is equivalent to proposing a research &#8...

## integrating R with other systems

June 16, 2012
By

I just returned from the useR! 2012 conference for developers and users of R. One of the common themes to many of the presentations was integration of R-based statistical systems with other systems, be they other programming languages, web systems, or enterprise data systems. Some highlights for me were an update to Rserve that includes

## Euro2012 Viz: Second Group Games

June 16, 2012
By

The second round of group games ended last night (sadly with Sweden’s elimination). Here is what the last number of days has done to the plots.

## Name popularity

June 15, 2012
By

This dynamic representation of the popularity of names over the years is a favorite. It’s not new, but I still find new things to appreciate, like names that used to apply to both sexes and now only one (Ellie), or vice versa (Harley). It seems l...

## Carnon [and Core, end]

June 15, 2012
By

Yet another full day working on Bayesian Core with Jean-Michel in Carnon… This morning, I ran along the canal for about an hour and at last saw some pink flamingos close enough to take pictures (if only to convince my daughter that there were flamingos in the area!). Then I worked full-time on the spatial

## Cubism Horizon Charts in R

June 15, 2012
By

Like many, I have been in awe of the d3.js and cubism.js visualization packages created by Mike Bostock. Mike Bostock @ Square talks about Time Series Visualization from Librato on Vimeo. The charts are beautiful and extraordinarily functional, so I th...

June 15, 2012
By

From Wiki:"... the bottom and top of the box are always the 25th and 75th percentile (the lower and upper quartiles, respectively), and the band near the middle of the box is always the 50th percentile (the median). But th...

## Project Euler — problem 10

June 15, 2012
By

Just finish my last assignment for this week. IT’S WEEKEND, officially. Let me take a break to have a look at the tenth problem, another prime problem. It’s no doubt that prime is the center of the number theory and fundamental … Continue reading →

## Using R in/for Governments

June 15, 2012
By

Recently British government (by Office  of National Statistics: ONS) just published their version of R manual for analysis of the government survey. The links to PDF and MS word versions of the manual including the R syntax are as below. Note: The R syntax link is not working now. I am contacting the ONS, hope

## How long does it take to get pregnant?

June 15, 2012
By

My girlfriend’s biological clock is ticking, and so we’ve started trying to spawn. Since I’m impatient, that has naturally lead to questions like “how long will it take?”. If I were to believe everything on TV, the answer would be easy: have unprotected sex once and pregnancy is guaranteed. A more cynical me suggests that

## Rounding in R

June 15, 2012
By

Forgive me if you are already aware of this, but I found it quite alarming. I know that most code is interpreted by the computer in binary and we input in decimal, so problems can arise in conversion and with floating point. But the example I have below is so simple that it really surprised me.I was converting...

## More on birthday probabilities

June 15, 2012
By

Last week, Joe Rickert used R and four years of US Census data to create an image plot of the relative probabilities of being born on a given day of the year: Chris Mulligan also tackled this problem with R, but this time using 20 years of Census data from 1969 to 1988. Chris extracted the birthday frequencies using...

## Standard, Robust, and Clustered Standard Errors Computed in R

June 15, 2012
By
$Standard, Robust, and Clustered Standard Errors Computed in R$

Where do these come from? Since most statistical packages calculate these estimates automatically, it is not unreasonable to think that many researchers using applied econometrics are unfamiliar with the exact details of their computation. For the purposes of illustration, I am going to estimate different standard errors from a basic linear regression model: , using the

## Update to Data on Github Post: Solution to an RCurl problem

June 14, 2012
By

A reader of my most recent post tried the R code I had written to download the data set of electoral disproportionality from the GitHub repository. However, it didn’t work for them. After entering disproportionality.data <- getURL(url) they go...

## useR 2012: my materials

June 14, 2012
By

Just a quick note that I’ve posted the slides, code, and dataset from my useR 2012 talk. I’m having a great time here in Nashville and will write up a conference review soon, with links to the many excellent packages … Continue reading →

## Pretty Correlation Map of PIMCO Funds

June 14, 2012
By

As PIMCO expands beyond fixed income, I thought it might be helpful to look at correlation of PIMCO mutual funds to the S&P 500.  Unfortunately due to the large number of funds, I cannot use the chart.Correlation from PerformanceAnalytics.&nbs...

## Mindoro Digital Elevation Map

June 14, 2012
By

Saw a map produced by my previous student using a commercial GIS software.Using R raster package and data from diva-gis.org. I produced the same map

## #4 R: A powerful tool for the geochemist

June 14, 2012
By

R is an incredibly powerful programming tool used by a large community of people who require an easy to use, light weight, FREE, and fundamentally awesome statistics package! I have recently discovered that R can be used by geologists whose IT skills are often pitied by their more computer literate geophysicist colleagues. Long story short

June 14, 2012
By

The most recent edition of the Revolution Newsletter is out. The news section is below, and you can read the full June edition (with highlights from this blog and community events) online. You can subscribe to the Revolution Newsletter to get it monthly via email. Revolution R Enterprise 6 Now Available! The latest release of Revolution R Enterprise brings...

## Some interesting ggplot2 tutorials for the social sciences @ Code à la Mode

June 14, 2012
By

Some interesting ggplot2 tutorials for the social sciences @ Code à la Mode

## Recent R packages for ecology and evolution

June 14, 2012
By

Many R packages/tools have come out recently for doing ecology and evolution. All of the below were described in Methods in Ecology and Evolution, except for spider, which came out in Molecular Ecology Resources. Here are some highlights. mvabund pap...
{"extraction_info": {"found_math": true, "script_math_tex": 0, "script_math_asciimath": 0, "math_annotations": 0, "math_alttext": 0, "mathml": 0, "mathjax_tag": 0, "mathjax_inline_tex": 0, "mathjax_display_tex": 0, "mathjax_asciimath": 0, "img_math": 0, "codecogs_latex": 0, "wp_latex": 1, "mimetex.cgi": 0, "/images/math/codecogs": 0, "mathtex.cgi": 0, "katex": 0, "math-container": 0, "wp-katex-eq": 0, "align": 0, "equation": 0, "x-ck12": 0, "texerror": 0, "math_score": 0.2453259974718094, "perplexity": 3188.980884302647}, "config": {"markdown_headings": true, "markdown_code": true, "boilerplate_config": {"ratio_threshold": 0.18, "absolute_threshold": 10, "end_threshold": 15, "enable": true}, "remove_buttons": true, "remove_image_figures": true, "remove_link_clusters": true, "table_config": {"min_rows": 2, "min_cols": 3, "format": "plain"}, "remove_chinese": true, "remove_edit_buttons": true, "extract_latex": true}, "warc_path": "s3://commoncrawl/crawl-data/CC-MAIN-2015-32/segments/1438042981969.11/warc/CC-MAIN-20150728002301-00251-ip-10-236-191-2.ec2.internal.warc.gz"}