December 2013

Next Kölner R User Meeting: 13 December 2013

December 10, 2013 | Markus Gesmann

Quick reminder: The next Cologne R user group meeting is scheduled for this Friday, 13 December 2013. We are delighted to welcome: Matt Dowle and Arun Srinivasan: Introduction to data.table Thomas Rahlf: Book presentation - Datendesign mit R Further details and the agenda are available on our KölnRUG Meetup site. ... [Read more...]

eeptools 0.3 Released!

December 9, 2013 | Jared Knowles

Version 0.3 of my R package of miscellaneous code has been released, this time with substantial contributions from Jason Becker via GitHub. Progress continues toward the ultimate goal for eeptools to "make it easier for administrators at stat... [Read more...]

24 Days of R: Day 9

December 9, 2013 | PirateGrunt

This will be the third time I've tried to write this post. I had started out presuming that I would uncover something fascinating about applying Bayesian inference to a low-frequency claims generation process. That isn't at all what I got and I ought to have known better when I started. ... [Read more...]

The Tornado Project

December 9, 2013 | Gopi Goteti

GoalBring consistency and transparency to the analyses of publicly available Tornado datasets using an R-based open source analysis.IssuesTornado data available from the NOAA Storm Prediction Center and other government agencies around the world h... [Read more...]

Intentionally Writing Obtuse Code

December 9, 2013 | wrathematics

Sometimes intentionally writing bad code can be a lot of fun. Now here, when I say "bad", I mean something that's functional but completely incoherent to anything but the machine. There are even competitions for this kind of thing, but I only consider myself a dabbler in this dark art. ... [Read more...]

Graphing my MPG vs Temperature

December 9, 2013 | Cory Nissen

I use Fuelly to track the fuel mileage in my Toyota Tundra pickup truck. They have a mobile app, so while I'm waiting for the truck to fill up, I log the odometer, and the number of gallons that I put in and then also the price per gallon of ...
[Read more...]

Adobe Analytics Implementation Documentation in 60 seconds

December 9, 2013 | Randy Zwitch

When I was working as a digital analytics consultant, no question quite had the ability to cause belly laughs AND angst as, “Can you send me an updated copy of your implementation documentation?” I saw companies that were spending six-or-seven-figures annually on their analytics infrastructure, multi-millions in salary for employees ... [Read more...]

Performance of the divide-and-conquer SVD algorithm

December 9, 2013 | Rcpp Gallery

The ubiquitous LAPACK library provides several implementations for the singular-value decomposition (SVD). We will illustrate possible speed gains from using the divide-and-conquer method by comparing it to the base case.
<span>#include <RcppArmadillo.h></span>

<span>// [[Rcpp::depends(RcppArmadillo)]]</span>

<span>// [[Rcpp::export]]</span>
<span>arma</span><span>::</span><span>vec</span> <span>baseSVD</span><span>(</span><span>const</span> <span>arma</span><span>::</span><span>mat</span> <span>&</span> <span>X</span><span>)</span> <span>{</span>
    <span>arma</span><span>::</span><span>mat</span> <span>U</span><span>,</span> <span>V</span><span>;</span>
    <span>arma</span><span>::</span><span>vec</span> <span>S</span><span>;</span>
    <span>arma</span><span>::</span><span>svd</span><span>(</span><span>U</span><span>,</span> <span>S</span><span>,</span> <span>V</span><span>,</span> <span>X</span><span>,</span> <span>"standard"</span><span>);</span>
    <span>return</span> <span>S</span><span>;</span>
<span>}</span>

<span>// [[Rcpp::export]]</span>
<span>arma</span><span>::</span><span>vec</span> <span>dcSVD</span><span>(</span><span>const</span> <span>arma</span><span>::</span><span>mat</span> <span>&</span> <span>X</span><span>)</span> <span>{</span>
    <span>arma</span><span>::</span><span>mat</span> <span>U</span><span>,</span> <span>V</span><span>;</span>
    <span>arma</span><span>::</span><span>vec</span> <span>S</span><span>;</span>
    <span>arma</span><span>::</span><span>svd</span><span>(</span><span>U</span><span>,</span> <span>S</span><span>,</span> <span>V</span><span>,</span> <span>X</span><span>,</span> <span>"dc"</span><span>);</span>
    <span>return</span> <span>S</span><span>;</span>
<span>}</span>
Having the two implementations, which differ only in the method argument (added recently in Armadillo 3.930), we are ready to ...
[Read more...]

Summarize statistics by Groups in R & R Commander

December 8, 2013 | Murtaza Haider

R is great at accomplishing complex tasks. Doing simple things with R though takes some effort. Consider the simple task of producing summary statistics for continuous variables over some factor variables. Using Stata, I’d write a brief one-liner to get the mean for one or more variables using another ... [Read more...]

Down-Sampling Using Random Forests

December 8, 2013 | Max Kuhn

We discuss dealing with large class imbalances in Chapter 16. One approach is to sample the training set to coerce a more balanced class distribution. We discuss down-sampling: sample the majority class to make their frequencies closer to the rarest class. up-sampling: the minority class is resampled to increase the corresponding ... [Read more...]
1 7 8 9 10 11 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)