March 2011

Free and Easy Currency Monitor in R

March 22, 2011 | klr

Certainly not the best way to keep up with currencies, but the increasingly important job of monitoring currencies can be free and easy in R using Federal Reserve FRED data.  Here is a template that can be adjusted to your favorite currencies with...
[Read more...]

A Short Side-by-side Comparison of the R and NumPy Array Types

March 22, 2011 | BioStatMatt

Feature NumPy R contiguous (virtual) memory ✔ ✔ 'view' memory model ✔ ✘ subset-assignment ✔ ✔ vectorized operations ✔ ✔ memory-mapping ✔ ✘* broadcasting rules ✔ ✔ index arrays ✔ ✔ This comparison is current as of R 2.13.0, NumPy version 1.4.1, and other web resources to date. Because this post was motivated by a [...] [Read more...]

data.table: an R package everyone should use

March 22, 2011 | Jason

I’m not sure how I missed this package, but I am sure glad I’ve found it. The data.table package for R provides something of a reconceptualization of the standard data.frame object. Though it remains (mostly) compatible with data.frame. The advantage … Continue reading → [Read more...]

Correlation network

March 22, 2011 | Dzidorius Martinaitis

I came up with an idea to draw correlation network to get a grasp about relationship between a list of stocks. An alternative way to show correlation matrix would be head map, which can have limitations with big matrices (__100). Unfortunately,  ggplot2 package doesn’t have a easy way to draw ... [Read more...]

Example 8.31: Choropleth maps

March 22, 2011 | Ken Kleinman

In our book, we show a simple example of a map (section 6.4.2) where we read the boundary files as data sets and use SAS and R to plot them. But both SAS and R have complex functionality for using pre-compiled map data. To demonstrate them, we'll sho...
[Read more...]

Machine Learning Ex2 – Linear Regression

March 22, 2011 | R on Guangchuang Yu

Thanks to this post, I found OpenClassroom. In addition, thanks to Andrew Ng and his lectures, I took my first course in machine learning. These videos are quite easy to follow. Exercise 2 requires implementing gradient descent algorithm to model data with linear regression. Read More: 243 Words Totally [Read more...]

JCGS 20th anniversary

March 22, 2011 | xi'an

For its 20th anniversary, JCGS offers free access to papers, including Andrew’s discussion paper Why tables are really much better than graphs. (Another serious ending for an April fool joke!) Incidentally (or rather coincidentally), I received today the great news that our Using parallel computation to improve Independent Metropolis-Hastings ... [Read more...]

Day #9 Using R in Knime nodes

March 22, 2011 | Stageverloop Kris » R

First you need to create a workflow in Knime. This is what i used. I loaded in the Iris data, renamed the tables for further use in my scripts and showed a view, or first did an R snippet to show a view afterwards. Once this is done, make sure ... [Read more...]

Statistics forum

March 21, 2011 | xi'an

The ASA is launching a new blog called the Statistics Forum, managed by Andrew Gelman and to which I will periodically contribute items that may induce some amount of discussion within the community, like the first entry by Michael Lavine on testing. (Meaning I will double-post on the Og and ...
[Read more...]

A 3D Version of R’s curve() Function

March 21, 2011 | John Myles White

I like exploring the behavior of functions of a single variable using the curve() function in R. One thing that seems to be missing from R’s base functions is a tool for exploring functions of two variables. I asked for examples of such a function on Twitter today and ...
[Read more...]

Code Highlighter for R in WordPress

March 21, 2011 | QuantTrader

First of all, welcome to my blog! I will write posts about trading, quantitative and algorithmic trading, programming and everything else what is on my mind. Feel free to comment and give suggestions how to improve this blog. Thank you! Well, one of th... [Read more...]

RStudio Keyboard Shortcut Reference PDF

March 21, 2011 | Stephen Turner

I recently started using RStudio, the amazing new IDE for R. You can view all of RStudio's keyboard shortcuts by going to the help menu, but I made this printable reference for myself and thought I'd share it. I only included the Windows shortcuts, and... [Read more...]

NBA Analysis: Coming Soon!

March 21, 2011 | Ryan

I decided to spend a few hours this weekend writing the R code to scrape the individual statistics of NBA players (2010-11 only).  I originally planned to write up a few NBA-related analyses, but a friend was visiting from out … Continue reading → [Read more...]

Day #8 Calling R in java

March 21, 2011 | Stageverloop Kris » R

What is JRI? An additional library and plugin for Eclipse to call r functions in a Java-application. And according to wikipedia it’s  a now obsolete API for invoking native C++ calls from Java that has long been supplanted by Java Native Interfa... [Read more...]

Looking at the "Curse of Dimensionality" with R, foreach, and lattice

March 20, 2011 | xi'an

Here are the results of a "Curse of Dimensionality" homework assignment for Terran Lane's Introduction to Machine Learning class. Pretty pictures, interesting results, and a good exercise in explicit parallelism with R. It's neat to see distance scaling linearly with standard deviation, and linearly with the Lth-root for an L-norm ... [Read more...]

Machine Learning Ex5.2 – Regularized Logistic Regression

March 20, 2011 | al3xandr3

Exercise 5.2 Improves the Logistic Regression implementation done in Exercise 4 by adding a regularization parameter that reduces the problem of over-fitting. We will be using Newton's Method. Data Here's the data we want to fit. # linear regression # load the data mydata = read.csv("http://spreadsheets.google.com/pub?key=0AnypY27pPCJydHZPN2... [Read more...]

Bertand’s paradox [R details]

March 19, 2011 | xi'an

Some may have had reservations about the “randomness” of the straws I plotted to illustrate Bertrand’s paradox. As they were all going North-West/South-East. I had actually made an inversion between cbind and rbind in the R code, which explained for this non-random orientation. Above is the corrected version, ...
[Read more...]
1 3 4 5 6 7 13

Never miss an update!
Subscribe to R-bloggers to receive
e-mails with the latest R posts.
(You will not see this message again.)

Click here to close (This popup will not appear again)