November 2011

Contributions to the R source

November 29, 2011 | rdpeng

One of the nice things about tracking the R subversion repository using git instead of subversion is you can do git shortlog -s -n which gives you 19855 ripley 6302 maechler 5299 hornik 2263 pd 1153 murdoch 813 iacus 716 luke 6... [Read more...]

Example 9.16: Small multiples

November 29, 2011 | Ken Kleinman

Small multiples are one of the great ideas of graphics visionary Edward Tufte (e.g., in Envisioning Information). Briefly, the idea is that if many variations on a theme are presented, differences quickly become apparent. Today we offer general guida...
[Read more...]

Accessing and Visualising Sentencing Data for Local Courts

November 29, 2011 | Tony Hirst

A recent provisional data release from the Ministry of Justice contains sentencing data from English(?) courts, at the offence level, for the period July 2010-June 2011: “Published for the first time every sentence handed down at each court in the country between July 2010 and June 2011, along with the age and ethnicity ... [Read more...]

outersect(): The opposite of R’s intersect() function

November 29, 2011 | Tony Breyal

The Objective To find the non-duplicated elements between two or more vectors (i.e. the ‘yellow sections of the diagram above) The Problem I needed the opposite of R’s intersect() function, an “outersect()“. The closest I found was setdiff() but the order of the input vectors produces different results, ... [Read more...]

A/B Testing in R – Part 1

November 29, 2011 | Abraham Mathew

A/B testing is a method for comparing the effectiveness of several different variations of a web page. For example, an online clothing retailer that specializes in mens’ streetwear may want to examine whether a black or pink background results in more purchases from visitors to the site. Lets say ... [Read more...]

Trading Strategy Sensitivity Analysis

November 28, 2011 | systematicinvestor

When designing a trading strategy, I want to make sure that small changes in the strategy parameters will not transform the profitable strategy into the loosing one. I will study the strategy robustness and profitability under different parameter scenarios using a sample strategy presented by David Varadi in the Improving ... [Read more...]

Dealing with R and HANA

November 28, 2011 | Alvaro "Blag" Tejada Galindo

First things first...what's "R"? Simply put...is a programming language and software environment for statistical computing and graphics. More infomation can be found here R on WikipediaI have code in many programming languages, some of them very commer... [Read more...]

How to speed up loops in R

November 28, 2011 | David Smith

As with any language, there are often several ways to code up the solution to a programming problem in R. If performance of the code is important (i.e. it's something you plan to run many times, or with a lot of data), how you code the solution can often ... [Read more...]

R’s Distrotheque

November 28, 2011 | Ethan Brown

(Update: The csound package is now available on CRAN.) Do your random variables need to groove more? Of course they do. That's why I've been working on the upcoming csound package for R, which connects to Csound computer synthesis software to make any sound imaginable. Your computer'll be the hippest ... [Read more...]

Course: Financial Data Modeling and Analysis in R

November 28, 2011 | David Smith

The University of Washington is holding a web-based course which will be of interest to anyone who wants to learn about financial modeling with R: Financial Data Modeling and Analysis in R (AMATH 542) is a comprehensive introduction to the R statistical programming language for computational finance offered by the University ... [Read more...]

Predicting Gender

November 28, 2011 | T.S. Hauck

If there are two (can be generalized to n) classes and both follow the same distribution (but with different parameters) it is possible to predict which class an observations comes from. Here I’ll try to predict a sample’s gender based on their height. The distribution of a person’... [Read more...]

Another aspect of speeding up loops in R

November 28, 2011 | Marc in the box

Any frequent reader of R-bloggers will have come across several posts concerning the optimization of code - in particular, the avoidance of loops.Here's another aspect of the same issue. If you have experience programming in other languages besides R, this is probably a no-brainer, but for laymen, like myself, ... [Read more...]

A nice short article on memory in R

November 28, 2011 | Yanchang Zhao

There is a nice short article on memory issue in R at http://www.matthewckeller.com/html/memory.html. If you use R to process large data, you might find it helpful. It introduces: - checking how much memory an object is taking; - the memory … Continue reading → [Read more...]

Prime Number in R Language (CloudStat)

November 28, 2011 | CloudStat

A prime number (or a prime) is a natural number greater than 1 that has no positive divisors other than 1 and itself. R Language Code The Prime Function prime = function(n){   n = as.integer(n)   if(n __ 1e8) stop(“n too large”)   primes = re...
[Read more...]

Regression via Gradient Descent in R

November 27, 2011 | Matt Bogard

In a previous post I derived the least squares estimators using basic calculus, algebra, and arithmetic, and also showed how the same results can be achieved using the canned functions in SAS and R or via the matrix programming capabilities offered by ...
[Read more...]

Basic Econometrics in R and SAS

November 27, 2011 | Matt Bogard

Regression Basicsy= b0 + b1 *X  ‘regression line we want to fit’The method of least squares minimizes the squared distance between the line ‘y’ andindividual data observations yi. That is minimize: ∑ ei2 = ∑ (yi - b0 -  b1 Xi...
[Read more...]

Gradient Descent in R

November 27, 2011 | Matt Bogard

In a previous post I discussed the concept of gradient descent.  Given some recent work in the online machine learning course offered at Stanford,  I'm going to extend that discussion with an actual example using R-code  (the actual code...
[Read more...]
1 2 3 4 14

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)